Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Returns the node type in string form.

Script Syntax

Copy Code
		
strValue = oXMLDOMNode.nodeTypeString;

Remarks

Script Parameters

None.

Script Return Value

String. String version of the node type.

C/C++ Syntax

Copy Code
HRESULT get_nodeTypeString(
  BSTR* 
nodeType
);

Remarks

C/C++ Parameters

nodeType

[out, retval] String version of the node type.

C/C++ Return Values

S_OK

Value returned if successful.

E_INVALIDARG

Value returned if nodeTypeis Null.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

To return the enumeration value, use the nodeTypeproperty.

This value depends on the value of the nodeTypeproperty.

Value nodeType value

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 property is an extension of the Worldwide Web Consortium (W3C) Document Object Model (DOM).

This property is read-only, and applies to the following objects and interfaces:

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime

See Also