Chapter 6. SAX

At its core, SAX, the Simple API for XML, is based on just two interfaces: the XMLReader interface that represents the parser, and the ContentHandler interface which receives data from the parser. These two interfaces alone suffice for 90 percent of what you need to do with SAX. This chapter shows the basic operation of XMLReader and discusses ContentHandler in detail. Chapter 7 explores a variety of ways to customize the parsing process through the more advanced features of the XMLReader interface.

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.