The DOM standard defines interfaces that are used to manage nodes. Nodes represent elements, text, comments, processing instructions, CDATA sections, entity references and declarations, notation declarations and even entire documents. Nodes are also used to represent attributes, though these nodes are not strictly part of the document tree. There are also some additional node types defined for ease of managing groups of nodes, including two that hold lists of nodes, and one that is useful for transferring nodes to another part of the document tree.

The API allows an object to represent a node. The software can interrogate the node object for information about the node, and about the other nodes it is attached to.

The Node interface is at ...

Get XML Companion, The, Third Edition now with O’Reilly online learning.

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