namespaceURI Property

MSXML 5.0 SDK

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

namespaceURI Property

Returns a string that contains the value of the namespace URI for the item being queried.

Example

The following is an example of the namespace URI for an element and an attribute, used in an XML schema.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:oth="http://www.example.microsoft.com/other-schema">
  <xsd:element name="bookcategory">
    <xsd:complexType>
      <xsd:attribute name="book"/>
    </xsd:complexType >
  </xsd:element>
</xsd:schema>
[Script]

Implementation Syntax

var strNamespaceURI = oISchemaItem.namespaceURI;

Parameters

None.

Return Values

strNamespaceURI
A string. The namespace URI of the schema item.
[Visual Basic]

Implementation Syntax

strNamespaceURI = oISchemaItem.namespaceURI

Parameters

None.

Return Values

strNamespaceURI
A string. The namespace URI of the schema item.
[C/C++]

Implementation Syntax

HRESULT get_namespaceURI(BSTR* namespaceURI);

Parameters

namespaceURI [out,retval]
A string. The namespace URI of the schema item.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the URI returned is NULL.
E_FAIL
The value returned if something else is wrong.

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

See Also

Using Namespaces in Schemas | Using Other Namespaces

Applies to: ISchemaItem Interface