Microsoft XML SDK 2.6 - XML Reference

nodeTypeString Property

Returns the node type in string form.

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:

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

This member is an extension of the W3C DOM.

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("Msxml2.DOMDocument")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
Set currNode = xmlDoc.documentElement.childNodes.item(0)
MsgBox currNode.nodeTypeString

See Also

Applies To: XMLDOMAttribute Object | XMLDOMCDATASection Object | XMLDOMCharacterData Object | XMLDOMComment Object | DOMDocument Object | XMLDOMDocumentFragment Object | XMLDOMDocumentType Object | XMLDOMElement Object | XMLDOMEntity Object | XMLDOMEntityReference Object | XMLDOMNode Object | XMLDOMNotation Object | XMLDOMProcessingInstruction Object | XMLDOMText Object | XTLRuntime Object