Table 1: The DOM Node types.

Node Type Description
ATTRIBUTE_NODE Represents an attribute of an XML element; for instance, <Score type="percent">100</Score >.
CDATA_SECTION_NODE Represents data that is not to be interpreted as markup.
COMMENT_NODE Represents a comment within the XML; for instance, <!-- This is a comment -->.
DOCUMENT_FRAGMENT_NODE Represents a lightweight Document object.
DOCUMENT_NODE Represents the XML Document root.
DOCUMENT_TYPE_NODE Represents the XML document type attribute.
ELEMENT_NODE Represents an XML element tag; for instance, <LastName>Bruno</LastName>.
ENTITY_NODE Represents a basic piece of XML data.
ENTITY_REFERENCE_NODE Represents an XML entity reference, which is a substitution for another character; for instance, <command>java -cp &lt;classpath&rt;</commmand>.
NOTATION_NODE Represents a DTD construct used to format an unparsed XML entity.
PROCESSING_INSTRUCTION_NODE Represents an instruction for parsing the XML; for instance, <?xml-styleshhet href=...>.
TEXT_NODE Represents the text content within an XML element or attribute; for instance, <LastName>Bruno</LastName>.