Returns the node type in string form.
Syntax
strValue = oXMLDOMNode.nodeTypeString
Remarks
String. The property is read-only. It contains the string version of the node type. To return the enumeration value, use the nodeType property.
This value depends on the value of the nodeType property:
This member is an extension of the W3C DOM.
- NODE_ATTRIBUTE
- attribute
- NODE_CDATA_SECTION
- cdatasection
- NODE_COMMENT
- comment
- NODE_DOCUMENT
- document
- NODE_DOCUMENT_FRAGMENT
- documentfragment
- NODE_DOCUMENT_TYPE
- documenttype
- NODE_ELEMENT
- element
- NODE_ENTITY
- entity
- NODE_ENTITY_REFERENCE
- entityreference
- NODE_NOTATION
- notation
- NODE_PROCESSING_INSTRUCTION
- processinginstruction
- NODE_TEXT
- text
Example
The following VBScript example creates an XMLDOMNode object and displays its node type in string form (in this case, "element"):
Dim xmlDoc Dim currNode Set xmlDoc = CreateObject("microsoft.xmldom") xmlDoc.async = False xmlDoc.load("c:\books.xml") Set currNode = xmlDoc.documentElement.childNodes.item(0) MsgBox currNode.nodeTypeString
Applies To