Nonhierarchical Nodes

There are a few structural Infoset properties that do not fit into the [parent]/[children] relationships of the Infoset. These include the [attributes] property of an element information item as well as the [notations] and [entities] properties of a document information item. Each of these properties exposes a collection of information items as an unordered collection that is accessed by name. To model this sort of collection, the DOM defines the NamedNodeMap interface.

 interface NamedNodeMap { Node item(in unsigned long index); readonly attribute unsigned long length; Node getNamedItemNS(in DOMString namespaceURI, in DOMString localName); Node getNamedItem(in DOMString name); Node setNamedItemNS(in Node arg) raises(DOMException); ...

Get Essential XML: Beyond Markup 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.