Package org.xml.sax.ext

This package contains interfaces to optional SAX2 handlers.


Interface Summary
DeclHandler SAX2 extension handler for DTD declaration events.
LexicalHandler SAX2 extension handler for lexical events.

Package org.xml.sax.ext Description

This package contains interfaces to optional SAX2 handlers.

See for more information about SAX.

The package is independent of the SAX2 core, though the functionality exposed generally needs to be implemented within a parser. That independence has several consequences:

This package, SAX2-ext, is a standardized extension to SAX2. It is designed both to allow SAX parsers to pass certain types of information to applications, and to serve as a simple model for other SAX2 parser extension packages. Not all such extension packages should need to be recognized directly by parsers, however. As an example, most schema systems can be cleanly layered on top of parsers supporting the standardized SAX2 interfaces.

NOTE: this package alone does add any functionality; it simply provides optional interfaces for SAX2 drivers to use. You must use a SAX2 driver that recognizes these interfaces if you actually want to have access to lexical and declaration information.