Chapter 11. The DOM Core

Chapters 9 and 10 considered a DOM document as primarily a tree of nodes—that is, as composed of instances of the Node interface. Indeed, for many purposes this is all you need to know. But not all nodes are the same. Elements have properties that attributes don't have. Attributes have properties that processing instructions don't have. Processing instructions have properties that comments don't have, and so forth. In this chapter, we look at the unique properties and methods of the individual interfaces that make up an XML document.

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.