The DomNode class
The om.DomNode
class provides methods to manipulate a DOM node of a
data tree.
This class follows the DOM standards.
A DomNode object is a node (or element) of a DomDocument.
Tag and attribute names of DOM nodes are case sensitive; "Wheel" is not the same as "wheel".
Text nodes cannot have attributes, but they have plain text. In text nodes, the characters can
be accessed with the @chars
attribute name. In XML representation, a text node
is the text itself. Do not confuse it with the parent node.
For example, <Item id="32">Red shoes</Item>
represents 2 nodes:
The parent 'Item' node and a text node with string 'Red shoes'.
If you need to identify an element, use a common attribute like "name". If you need to label an element, use a common attribute like "text".