Nodes

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 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.