Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

namespaceURI Property (IXMLDOMNode)

Returns the Uniform Resource Identifier (URI) for the namespace.

[Script]

Script Syntax

strValue = oXMLDOMNode.namespaceURI;
[Visual Basic]

Visual Basic Syntax

strValue = oXMLDOMNode.namespaceURI
[C/C++]

C/C++ Syntax

HRESULT get_namespaceURI(
    BSTR *namespaceURI);

Parameters

namespaceURI [out, retval]
URI for the namespace. This refers to the "uuu" portion of the namespace declaration xmlns:nnn="uuu".

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value returned when there is no namespace.
E_INVALIDARG
Value returned if the namespaceURI parameter is Null.

Remarks

String. The property is read-only. Returns the URI for the namespace. This refers to the "uuu" portion of the namespace declaration xmlns:nnn="uuu".

This member is an extension of the World Wide 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

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