Поделиться через


namespaceURI Property1

 

[This feature was only implemented for MSXML 6.0.]

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>  

JScript Syntax

var strNamespaceURI = oISchemaItem.namespaceURI;  

Parameters

None.

Return Values

strNamespaceURI
A string. The namespace URI of the schema item.

Visual Basic Syntax

strNamespaceURI = oISchemaItem.namespaceURI  

Parameters

None.

Return Values

strNamespaceURI
A string. The namespace URI of the schema item.

C/C++ 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 output parameter BSTR* namespaceURI is NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaItem Interface

See Also

Using Namespaces in Schemas
Using Other Namespaces