XML DOM Enumerated Constants
IXMLDOMNodeType ENUMERATIONS specifiy valid settings for the Document Object Model (DOM) node type. The node type determines valid values and whether the node can have child nodes.
Values
The IXMLDOMNodeType enumeration defines the following valid values.
NODE_ELEMENT
The node represents an element (its nodeTypeString property is “element”). An element node can have the following child types:Element, Text, Comment, Processing Instruction, CDATASection, and EntityReference. The Element node can be the child of the Document, DocumentFragment, EntityReference, and Element node.
NODE_ATTRIBUTE
The node represents an attributes of an element (it's nodeTypeString property is “attribute”). An attribute node can have the following childe node types:Text and EntityReference. The attribute node does not appear as the child node of any other node type; it is not considered a child node of an element.
NODE_TEXT
The node represents the text content of tag (its nodeTypeString property is “text”). An Text node cannot have any child nodes. The Text node can appear as the child node of the Attribute, DocumentFragment,Element, and EntityReference nodes.
NODE_CDATA_SECTION
The node represents a CDATA section in the XML source (its nodeTypeString property is “cdatasection”). CDATA section are used to escape blocks of text that would otherwise be recognized as markup. A CDATASection node cannot have any child nodes. The CDATASection node can appear as the child of the DocumentFragment, EntityReference, and Element nodes.
NODE_ENTITY_REFERENCE
The node represents a reference to an entity in the XML document (its nodeTypeString property is “entityreference”). This applies to all entities, including character entity reference.
An EntityReference node can have the following child node types: Element, ProcessingInstruction, Comment, Text, CDATASection, and EntityReference. The EntityReference node can appear as the child of the attribute, DocumentFragment, Element and EntityReference nodes.
NODE_ENTITY
The node represents an expanded entity (its nodeTypeString property is “entity”). An Entity node can have child nodes that represent the expanded entity (for example, Text and EntityReference). The entity node can appear as the child of the DocumentType node.
NODE_PROCESSING_INSTRUCTION
The node represents a processing instruction from the XML document (its nodeTypeString property is “processinginstruction”). A ProcessingInstruction node cannot have any child nodes. The ProcessingInstruction node can appear as the child of the DocumentType node.
NODE_COMMENT
The node represents a comment in the XML document (its nodeTypeString property is “comment”). A Comment node cannot have any child nodes. The comment node can appears as the child of the Document, DocumentFragment, Element, and EntityReference nodes.
NODE_DOCUMENT
The node represents a document object, that as the root of the document tree, provide access to the entire XML document (its nodeTypeString property is “document“). It is created using the progID “Microsoft.XMLDOM” or through a data island using or