Chapter 16. Working with the SAX API in Java
In This Chapter
You've seen in detail how to use DOM. As a data structure API, DOM is easy for most people to pick up. However, the DOM data structure may not be the best match for your application. That's the strength of SAX—you can choose whichever data structure is the best fit for your application, or use none at all and just stream your processing. Moreover, you get portable access to many aspects of XML processing that DOM hides from you.
SAX (Simple API for XML) is an interface to an XML parser, rather than an API to one of the data structures that could be ...
Get XML Unleashed 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.