Nodes and Objects
The W3C DOM uses a dual reference to describe the document objects. Everything in the object model is
A node.
A named object type.
As previously noted, this leads to a certain overlap in the syntax. However, this is not necessarily a bad thing. For the most part, nodes and objects are represented in the document tree. However, the Attr node is one kind of node that is not represented in the tree, but is a node just the same.
The Attr node represents the XML attribute of an element node. It is called an Attr node to distinguish it from the IDL type of attribute. The Attr node does not take part in the tree structure. In other words, it is not considered to be the child node of any node. Instead, it is considered to ...
Get XML Unleashed 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.