XMLPULL

A pull parser works in streaming mode the way that SAX does. However, the client specifically requests the next chunk of data from the parser when it is ready for it, rather than taking it whenever the parser is ready to provide it. Furthermore, the client has a limited ability to filter out some normally insignificant pieces, such as comments and processing instructions. This can be as fast and as memory efficient as SAX parsing, and perhaps more familiar to many developers.

The developing standard API for pull parsing is known as XMLPULL [http://www.xmlpull.org]. This is currently implemented by two parsers, Enhydra's kXML2 [http://kxml.org/] and Aleksander Slominski's MXP1 [http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/]. The ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.