O'Reilly logo

C++ GUI Programming with Qt 3 by Mark Summerfield, Jasmin Blanchette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. XML

XML (Extensible Markup Language) is a text file format that is popular for data interchange and for data storage.

Qt provides two distinct APIs for processing XML documents:

  • 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 makes it especially appropriate both for simple tasks (like finding all occurrences of a given tag in an XML document) and for reading very ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required