W3C node types

Node type Numeric type value Description
Element - Represents an element.
Attribute - Represents an attribute.
Text-3 Represents character data in an element or attribute.



CDATA section - Represents text that may contain characters that would otherwise
be considered markup.
Entity reference- Represents an entity reference.
Entity - Represents an entity.
Processing instruction - Represents a processing instruction.
Comment - Represents a comment.
Document - Represents the document (this is the root node of the tree).
Document type - Represents a list of entities that are defined for this document.
Document fragment - Represents a document that is “lighter” than a true document
node, as it contains only a part of a document.
Notation - Represents a notation declared in the document type definition
(DTD).