DOM

The Document Object Model defines a tree-based representation of XML documents. The org.w3c.dom package contains the basic node classes that represent the different components which make up the tree. The org.w3c.dom.traversal package includes some useful utility classes for navigating, searching, and querying the tree.

DOM Level 2, the version described here, is incomplete. It does not define how a DOMImplementation is loaded, how a document is parsed, or how a document is serialized. For the moment, JAXP provides a stopgap solution. Eventually, DOM3 will fill in these holes, but because it was far from complete at the time of this writing, this appendix covers DOM2 exclusively.

The DOM Data Model

Table A.1 summarizes the DOM data model with ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.