Java API for XML Processing

The DOM parser is called a DocumentBuilder, as it builds an in-memory Document representation.

[2] The DocumentBuilder creates an org.w3c.dom.Document instance - a tree structure containing nodes in the XML Document.

The DefaultHandler class implements the ContentHandler, the ErrorHandler, the DTDHandler, and the EntityResolver interfaces.

Most clients will be interested in methods defined in the ContentHandler interface that are called when the SAX parser encounters the corresponding elements in the XML document.

It is possible to store a local cache for frequently used documents using an XML Catalog.

JAXP provides interfaces in package javax.xml.transform allowing applications to invoke an XSLT transformation.