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
Printable View
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 example;) At the end of the detailed description you foundThat should answer your question: QDomText!Code:
doc.appendChild(root); root.appendChild(tag); tag.appendChild(t);