Processing XML with Javaв„ў: A Guide to SAX, DOM, JDOM, JAXP, and TrAX
Chapters 9 and 10 considered a DOM document as primarily a tree of nodesthat 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. |