The JavaTM Web Services Tutorial
Home
TOC
PREV TOP NEXT

Java API for XML Processing

Eric Armstrong

The Java API for XML Processing ("JAXP") is for processing XML data using applications written in the Java programming language. JAXP leverages the parser standards SAX (Simple API for XML Parsing) and DOM (Document Object Model) so that you can choose to parse your data as a stream of events or to build an object representation of it. JAXP also supports the XSLT (XML Stylesheet Language Transformations) standard, giving you control over the presentation of the data and enabling you to convert the data to other XML documents or to other formats, such as HTML. JAXP also provides namespace support, allowing you to work with DTDs that might otherwise have naming conflicts.

Designed to be flexible, JAXP allows you to use any XML-compliant parser from within your application. It does this with what is called a pluggability layer, which allows you to plug in an implementation of the SAX or DOM APIs. The pluggability layer also allows you to plug in an XSL processor, letting you control how your XML data is displayed.

In This Chapter
The JAXP APIs
An Overview of the Packages
The Simple API for XML (SAX) APIs
The SAX Packages
The Document Object Model (DOM) APIs
The DOM Packages
The XML Stylesheet Language for Transformation (XSLT) APIs
The XSLT Packages
Where Do You Go from Here?
Home
TOC
PREV TOP NEXT