Chapter 15. XML

XML

XML (Extensible Markup Language) is a general-purpose text file format that is popular for data interchange and data storage. Qt provides two distinct APIs for reading XML documents as part of the QtXml module:

  • SAX (Simple API for XML) reports “parsing events” directly to the application through virtual functions.

  • DOM (Document Object Model) converts an XML document into a tree structure, which the application can then navigate.

There are many factors to take into account when choosing between DOM and SAX for a particular application. SAX is more low level and usually faster, which ...

Get C++ GUI Programming with Qt 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.