The Element Interface
Most of the nodes in a document will belong to either the element or text interfaces. However, neither interface is particularly large. Most of the operations performed on element nodes—such as discovering relationships and editing the element nodes—are handled by the node interface. Most of the operations on text nodes are handled by the CharacterData interface.
Apart from a few stray attributes and methods, the majority of the element interface's methods are concerned with managing an element's XML attribute properties.
In the XML DOM, XML attributes are considered to be properties of the individual element and are not included in the tree structure model. The getAttribute() method is a simple method that accepts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access