I resolve the problem, clearing my dom tree with the reallocation of a new QDomDocument instead of calling the function clear():
root=doc->createElement("root");//root file
doc->appendChild(root);
doc=new QDomDocument("doc");
root=doc->createElement("root");//root file
doc->appendChild(root);
To copy to clipboard, switch view to plain text mode
And than, i use
doc->elementsByTagName("node1");
doc->elementsByTagName("node1");
To copy to clipboard, switch view to plain text mode
instead of :
root.elementsByTagName("node1");
root.elementsByTagName("node1");
To copy to clipboard, switch view to plain text mode
Bookmarks