Hi,
I want to write XML file using QDomDocument. Firstly I am creating a document and then creating an element. The tagname() of the element is set, but am not able to set the text of the element. Is there any way I can do that.
Thanks
Hi,
I want to write XML file using QDomDocument. Firstly I am creating a document and then creating an element. The tagname() of the element is set, but am not able to set the text of the element. Is there any way I can do that.
Thanks
Yes, by reading the documentation for QDomDocument for exampleAt the end of the detailed description you found
That should answer your question: QDomText!Qt Code:
doc.appendChild(root); root.appendChild(tag); tag.appendChild(t); To copy to clipboard, switch view to plain text mode
Bookmarks