PDA

View Full Version : How to change QDomElement's text



ppdayz
20th August 2011, 08:32
hi

I have a problem to change the txt in an element:
I want to change
<tag1>a</tag1>
to
<tag1>b</tag1>
Is there a simple way to do this?

wysota
20th August 2011, 10:33
Create a QDomText node and add it as a child of your element after removing the current text node from the element.