Java APIs for XML Kick Start By Aoyon Chowdhury, Parag Choudhary
Table of Contents
Part II. JAXP: Java API for XML Processing
Chapter 5. The Document Object Model
IN THIS CHAPTER
Overview
The DOM and the JAXP Packages
Creating a DOM Application
Accessing XML Data Using DOM
Managing Data Using DOM
The Document Object Model (DOM) is an API set defined by the W3C DOM Working Group for building an object representation of the contents of an XML file. The JAXP specification endorses the DOM standards and provides a standard, consistent, and vendor-independent API set with which you can create and work in a DOM created from a parsed XML document.
This chapter explains how JAXP enables you to process an XML document using a DOM-based parser. This chapter is divided into four sections. The first section explains the DOM APIs included with JAXP and the JAXP package that enables the use of DOM. The remaining three sections take you through a step-by-step process to implement the APIs in an application to process an XML document using a DOM parser.