Generating XML in Qt
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.html
So is the first source and old article, and the XML streaming something rescent?
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)
Thanks. That what I was thinking. What caused my confusion was I didn't find the second source till a week later.
I'll give you one very valuable tip:
Start any search for Qt info in the Qt Documentation !
It's really quite good...
Qt has a whole QtXml module with a bunch of classes for DOM and SAX support