Generating XML in Qt
-
wrote on 5 Dec 2011, 22:11 last edited by
I did a search about writing XML files. After reading the results, I am confused and now writing this post.
I read that Qt has no dedicated XML writer class. "Source 1":http://doc.qt.nokia.com/qq/qq05-generating-xml.html
Then I read about XML streaming. "Source 2":http://doc.qt.nokia.com/latest/xml-streaming.htmlSo is the first source and old article, and the XML streaming something rescent?
-
wrote on 5 Dec 2011, 22:50 last edited by
The first link appears to be from 2003. There is indeed a QXmlStreamWriter class and it works quite well. The class reference is available "here":http://doc.qt.nokia.com/latest/qxmlstreamwriter.html.
According to that class reference, it was added in Qt 4.3. (which was released in 2007)
-
wrote on 5 Dec 2011, 23:03 last edited by
Thanks. That what I was thinking. What caused my confusion was I didn't find the second source till a week later.
-
wrote on 6 Dec 2011, 08:45 last edited by
I'll give you one very valuable tip:
Start any search for Qt info in the Qt Documentation !
It's really quite good...
-
wrote on 6 Dec 2011, 09:04 last edited by
Qt has a whole QtXml module with a bunch of classes for DOM and SAX support
1/5