Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
When using SAX-style XML parsers, the flow of execution depends entirely on the data being read sequentially from a file or stream. This inversion of control means that tracing the thread of execution requires a stack to keep track of passive calls to callback functions. Furthermore, your code (overrides of virtual functions) will be called by parsing code inside the Qt library.
Invoking the parser involves creating a reader and a handler, hooking them up, and calling parse(), as shown in Example 15.4.