| Value | Description | nodeTypeString | Can have child nodes of type: | Can be a child node of type: |
1 | An element | "element" | Element, Text, Comment, ProcessingInstruction, CDATASection, and EntityReference | Document, DocumentFragment, EntityReference, and Element |
2 | An attribute | "attribute" | Text and EntityReference | none |
3 | The text content of a tag | "text" | none | Attribute, DocumentFragment, Element, and EntityReference |
4 | A CDATA section. The XML parser should consider the section as text only. | "cdatasection" | none | DocumentFragment, EntityReference, and Element |
5 | An entity reference | "entityreference" | Element, ProcessingInstruction, Comment, Text, CDATASection, and EntityReference | Attribute, DocumentFragment, Element, and EntityReference |
6 | An expanded entity | "entity" | Any node included in an expanded entity. For example: Text and EntityReference | DocumentType |
7 | A processing instruction | "processinginstruction" | none | Document, DocumentFragment, Element, and EntityReferenceDocumentType |
8 | A comment | "comment" | none | Document, DocumentFragment, Element, and EntityReference |
9 | A document object. As the root of the document tree, provides access to the entire XML document. It is created using the progID "Microsoft.XMLDOM" or through a data island using <XML> or <SCRIPT LANGUAGE=XML>. | "document" | Element (maximum of one), ProcessingInstruction, Comment, and DocumentType | none |
10 | The document type, as indicated by the <!DOCTYPE>. | "documenttype" | Notation and Entity | Document |
11 | A document fragment | "documentfragment" | Notation and Entity | Document |
12 | A document type's notation | "notation" | any | DocumentType |