Qt 6.11 is out! See what's new in the release
blog
QDomDocument get node data
General and Desktop
2
Posts
2
Posters
827
Views
1
Watching
-
I had a XML file:
@
<Root>
<node>foobar</node>
</Root>
@Having gained access to "node", how can I access the value present between the opening and closing tags, so I can, for example, set a QString variable with the value "foobar"?
-
Hi,
I think its toElement().text().
See "toElement":http://qt-project.org/doc/qt-4.8/qdomdocument-members.html