[Qt-interest] Set text of a QDomElemet object

Prot Netin pronetin at yahoo.com
Sat Oct 1 10:13:15 CEST 2011


Hi all,

I have a xml file such as:
<config>
<lm>100</lm>
</config>

I can get 100 from file using QDomDocument, QDomNode, QDomElement classes and QDomElemet::text method.
I want to update <lm> text but i do not know how to do it. I want to change <lm>100</lm> to <lm>50</lm>. How can i set text of <lm> to 50?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111001/44fcde81/attachment.html 


More information about the Qt-interest-old mailing list