Previous | Next | Index | TOC | Top | Top Contents Index Glossary

Working with XML
The Java API for Xml Parsing (JAXP) Tutorial

by Eric Armstrong


Notes:
See Differences between the JAXP and Project X Tutorials for pages that show the changes to the overview and SAX pages for JAXP.
[Version 2, Update 1 -- 1 Mar 2000]
This tutorial covers the following topics:

Part I: Understanding XML and the Java XML APIs explains the basics of XML and gives you a guide to the acronyms associated with it. It also provides an overview of the JavaTM XML APIs you can use to manipulate XML-based data. To focus on XML with a minimum of programming, follow The XML Thread, below.

Part II: Serial Access with the Simple API for XML (SAX) tells you how to read an XML file sequentially, and walks you through the callbacks the parser makes to event-handling methods you supply.

Part III: XML and the Document Object Model (DOM) explains the structure of DOM, shows how to use it in a JTree, and shows how to create a hierarchy of objects from an XML document so you can randomly access it and modify its contents. This is also the API you use to write an XML file after creating a tree of objects in memory.

Additional Information contains a description of the character encoding schemes used in the Java platform and pointers to any other information that is relevant to, but outside the scope of, this tutorial.

The XML Thread

Scattered throughout the tutorial there are a number of sections devoted more to explaining the basics of XML than to programming exercises. They are listed here so as to form an XML thread you can follow without covering the entire programming tutorial:


Previous | Next | Index | TOC | Top | Top Contents Index Glossary