namespaceURI Property (XMLSchemaCache/IXMLSchemaCollection)

MSXML 5.0 SDK

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

namespaceURI Property (XMLSchemaCache/IXMLSchemaCollection)

Returns the namespace at the specified index.

[Script]

Script Syntax

strNamespaceURI = objXMLDOMSchemaCollection.namespaceURI(index);

Parameters

index
The index between 0 and (count-1).
[Visual Basic]

Visual Basic Syntax

strNamespaceURI = objXMLDOMSchemaCollection.namespaceURI(index)

Parameters

index
The index between 0 and (count-1).
[C/C++]

C/C++ Syntax

HRESULT namespaceURI(long index, BSTR* length);

Parameters

index [in]
The index between 0 and count -1.
length [out, retval]
The namespace URI at the given index. This string is a normalized version of the one provided in the add method (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

C/C++ Return Values

E_INVALIDARG
Value returned if the index is out of range.

Remarks

String. The namespaceURI property allows you to iterate through the collection to discover its contents. You can then use the get method (namespace) to see if there is an associated schema.

This is the default collection property, so you can do the following.

var uri = xmldoc.namespaces(1)

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

add Method | get Method

Applies to: XMLSchemaCache/IXMLDOMSchemaCollection