This package contains XML utilities, including several parsers, which implement or take advantage of SAX2 (first public alpha) APIs. Note that all the SAX2 aware classes may also be used with parsers that only expose SAX1 APIs, though with a certain degradation of functionality.

Parsers

The parsers are:

The wrappers for the Sun and Oracle parsers are the only pieces here which are dependent on code which is not is not Open Source or Public Domain, other than core JDK code (such as SWING and Strings). At this writing, Sun's code is commercially redistributable.

Other Utilities

This package includes three handler utilities:

For developers seeking a way to connect an arbitrary DOM implementation to an arbitrary SAX parser (such as the HTML parser above), the DOM Builder may be of interest.

There is a command line utility to connect parsers to handlers and process individual documents.

Disclaimer: SAX2 is Alpha!

Note that the SAX2 APIs are not stable, and are subject to change. Accordingly, these classes are not yet stable. As of this writing, the alpha release of SAX2 is available from http://www.megginson.com/SAX/SAX2.