IXMLDOMSchemaCollection::namespaceURI Method
Returns the namespace at the specified index.
Visual Basic Syntax
strNamespaceURI = objXMLDOMSchemaCollection.namespaceURI(index)
C/C++ Syntax
HRESULT namespaceURI(ULONG index, BSTR* pNamespaceURI);
Parameters
- index [in]
- The index between 0 and count-1.
- pNamespaceURI [out]
- 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
The namespaceURI parameter allows you to iterate through the collection to discover its contents. You can then use the get (namespace) method to see if there is an associated schema.
This is the default collection property, so you can use the following:
var uri = xmldoc.namespaces(1)
See Also
IXMLDOMSchemaCollection Interface