Package xml

This package contains XML utilities, including a SAX2 DOM parser and a command line utility.

See:
          Description

Class Summary
DefaultHandler This class extends the SAX base handler class to support the SAX2 Lexical and Declaration handlers.
DomBuilder Builds a DOM Level 1 (or Level 2) Document object from the output of a SAX2 parser, using a defaulted or specified DOM implementation and parser.
DomFactory Instantiates a DOMImplementation object, according to system defaults or a user-specified implementation choice.
DomParser2 This parser emits SAX2 parsing events as it traverses a DOM tree, using any conformant implementation of DOM.
DoParse This class provides a driver which may be invoked from the command line to process a document using a SAX parser and a specified processing pipeline.
EchoHandler This class is a SAX handler which echoes all its input as a well formed XML or XHTML document.
HtmlParser This is a wrapper around the javax.swing.text.html.parser.* HTML parser, implementing the SAX2 interfaces.
Resolver Utility implementation of a SAX resolver, which can be used to improve network utilization of SAX based XML (especially XHTML) components.
XhtmlEchoHandler This extends the EchoHandler to create a class which defaults to writing XHTML text, preferring the US-ASCII encoding.
 

Package xml Description

This package contains XML utilities, including a SAX2 DOM parser and a command line utility. Note that all the SAX2 aware classes may also be used (through a ParserAdapter) with parsers that only expose SAX1 APIs, though with a certain graceful degradation of functionality.

The command line utility connects parsers simple processing pipelines. This can be handy for command line validation or transformation tasks, possibly in batch mode, or within Makefiles.

The parsers in this package are:

This package includes three handler utilities:

Two DOM support classes provide APIs to address two fundamental portability problems with the DOM as currently defined by W3C. The DOM Builder provides a way to connect a DOM implementation to an arbitrary SAX parser, including the ones provided in this package. You can configure both the parser and the builder. The DOM Factory addresses a slightly different problem: how to get an empty DOM document.


Source code is GPL'd at http://xmlconf.sourceforge.net.