![]() |
Qt 4.8
|
The AbstractXmlPullProvider class provides a pull-based stream interface for the XPath Data Model. More...
The AbstractXmlPullProvider class provides a pull-based stream interface for the XPath Data Model.
AbstractXmlPullProvider allows a stream of items from the XPath Data Model – essentially XML – to be iterated over. The subclass of AbstractXmlPullProvider provides the events, and the user calling next() and so on, consumes them. AbstractXmlPullProvider can be considered a forward-only, non-reversible iterator.
Note that the content the events describes, are not necessarily a well-formed XML document, but rather an instance of the XPath Data model, to be specific. For instance, maybe a pull provider returns two atomic values, followed by an element tree, and at the end two document nodes.
If you are subclassing AbstractXmlPullProvider, be careful to correctly implement the behaviors, as described for the individual members and events.