QXmlSimpleReader
This is an implementation of a Qt XML stream reader that's modeled after Java's SAX2 streaming interface. It is an event-driven interface and the user has to create a class with callback methods and give that class and the XML file to the SAX parser. Since the parser will invoke the callbacks as it detects specific elements, the application has to maintain state information to know where in the XML hierarchy the callback was invoked. This can be somehow inconvenient.
Here, we do not have to keep the entire XML file in memory, so we could process a much bigger file in a more performant manner. However, this time, we should abstain from using this class because although it is not deprecated, QXmlStreamReader is a newer class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access