Trail: Java API for XML Processing (JAXP)

Before You Read This Tutorial

To make full use of the information in the Java API for XML Processing (JAXP) Tutorial, you should have knowledge of the following technology:

The Java programming language and its development environment.

The eXtensible Mark-up Language (XML)

The Document Object Model (DOM), as defined by the World Wide Web Consortium (W3C) DOM Working Group.

Simple API for XML (SAX), as developed cooperatively by the members of the XML-DEV mailing list.

Some prior knowledge of DOM and SAX is assumed. Only code that is specific to the JAXP API is examined in detail in this tutorial.

Introduction to JAXP provides a brief description of the JAXP technology, including its purpose and principal features.

Simple API for XML introduces a concept used in the JAXP technology, the Simple API for XML (SAX): when to use SAX, how to parse an XML file, how to implement SAX validation, how to run the SAX parser, and how to handle lexical events. Links for further information are provided.

Document Object Model introduces the tree structure used by the Document Object Model (DOM) and shows you how to use the DOM functions to create nodes, remove nodes, change the contents of the nodes, and to traverse the node hierarchy.