XML in QT [Solved]:)
-
I know how to do it in QML but I would also like to know how to do it in Qt. I searched in google could not find a good example. Kindly send me the link if you have or some example explaing how to parse xml.
Thanks a ton
-
Please have a look at "Qt classes for XML processing":http://qt-project.org/doc/qt-4.8/xml-processing.html
-
I already had a look at this but its too complicated. I have seen several documentation but no example. Kindly share if u have an example or work out an example if you have time. I really appreciate it. thanks in advance
-
"XML Examples":http://doc.qt.nokia.com/4.7-snapshot/examples-xml.html
You have examples for XML parsing with both DOM and SAX API.
-
[Solved.] Thanks Mr. Anavi.
-
[quote author="Julie1986" date="1346750421"][Solved.] Thanks Mr. Anavi.[/quote]
You are welcome :)
-
Note that Qt has a third API for XML parsing (and writing), that is neither SAX nor DOM: QXmlStream. Check out [[doc:QXmlStreamReader]] and [[doc:QXmlStreamWriter]] for details. I find it easier to use in many cases than the other two, and it is situated in QtCore (so no additional library needed).
-
oh nice. Thank you Andre
-
Please be sure and edit your original post to add [Solved] to the title. Thanks!