Auxiliary SAX Interfaces

The ContentHandler interface models 100 percent of the Infoset needed by 95 percent of the world's XML applications. The needs of the remaining 5 percent are addressed by three auxiliary interfaces: LexicalHandler, DTDHandler, and DeclHandler. LexicalHandler models peripheral Infoset-isms such as <!CDATA[ boundaries; DTDHandler models notations and unparsed entities; and DeclHandler models markup and entity declarations from DTDs. If your application does not need to deal with these aspects of XML, feel free to ignore these interfaces (and this section of the chapter).

The LexicalHandler models Infoset information items that are not required for proper interpretation. None of these items are part of the Infoset core. ...

Get Essential XML: Beyond Markup 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.