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