Node class

Node is the abstract base class for the Document, Element, Text, Comment and Attribute classes. A Node object represents a node in the XML tree of one of those types.

Note: If it is known which subtype a node represents, the node can be used as an instance of that subtype.