nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

Microsoft XML Core Services (MSXML) 4.0 - DOM Reference

nodeTypeString Property

Returns the node type in string form.

[Script]

Script Syntax

strValue = oXMLDOMNode.nodeTypeString;

Example

The following script example creates an IXMLDOMNode object and displays its node type in string form, in this case, "element".

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
var currNode;
xmlDoc.async = false;
xmlDoc.load("books.xml");
currNode = xmlDoc.documentElement.childNodes.item(0);
alert(currNode.nodeTypeString);
[Visual Basic]

Visual Basic Syntax

strValue = oXMLDOMNode.nodeTypeString

Example

The following Microsoft® Visual Basic® example creates an IXMLDOMNode object and displays its node type in string form, in this case, "element".

Dim xmlDoc As New Msxml2.DOMDocument40
Dim currNode As IXMLDOMNode
xmlDoc.async = False
xmlDoc.Load ("books.xml")
Set currNode = xmlDoc.documentElement.childNodes.Item(0)
MsgBox currNode.nodeTypeString
[C/C++]

C/C++ Syntax

HRESULT get_nodeTypeString(
    BSTR *nodeType);

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 nodeType is Null.

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 Worldwide Web Consortium (W3C) Document Object Model (DOM).

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

nodeType Property

Applies to: IXMLDOMAttribute | IXMLDOMCDATASection | IXMLDOMCharacterData | IXMLDOMComment | DOMDocument | IXMLDOMDocumentFragment | IXMLDOMDocumentType | IXMLDOMElement | IXMLDOMEntity | IXMLDOMEntityReference | IXMLDOMNode | IXMLDOMNotation | IXMLDOMProcessingInstruction | IXMLDOMText


Download de SDK