Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNode nodeTypedValue...     XMLDOMNode nodeValue Prop...     XMLDOMNode Object    
Web Workshop  |  XML (Extensible Markup Language)

nodeTypeString Property


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMAttribute, XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMDocument, XMLDOMDocumentFragment, XMLDOMDocumentType, XMLDOMElement, XMLDOMEntity, XMLDOMEntityReference, XMLDOMNode, XMLDOMNotation, XMLDOMProcessingInstruction, XMLDOMText, XTLRuntime


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.