Partager via


itemByQName Method

 

[This feature was only implemented for MSXML 6.0.]

Returns an ISchemaItem object. The returned object contains information about the item name and the corresponding namespace that are sent to the function in the name and namespaceURI parameters. The ISchemaItem interface obtains further information from the returned object.

JScript Syntax

var oISchemaItem = oISchemaItemCollection.itemByQName
(strName, strNamespaceURI)  

Parameters

strName
A string. The name of the schema item to be retrieved.

strNamespaceURI
A string. The name of the namespace URI that the item to be retrieved belongs to.

Return Values

oISchemaItem
An ISchemaItem object. The schema item that has the same name and namespace URI that are passed in through the parameters.

Visual Basic Syntax

Set oISchemaItem = oISchemaItemCollection.itemByQName
(strName, strNamespaceURI)  

Parameters

strName
A string. The name of the schema item to be retrieved.

strNamespaceURI
A string. The name of the namespace URI that the item to be retrieved belongs to.

Return Values

oISchemaItem
An ISchemaItem object. The schema item that has the same name and namespace URI that are passed in through the parameters.

C/C++ Syntax

HRESULT get_itemByQName(  
BSTR name,  
BSTR namespaceURI,  
ISchemaItem** item);  

Parameters

name [in]
A string. The name of the schema item to be retrieved.

namespaceURI[in]
A string. The name of the namespace URI that the item to be retrieved belongs to.

item[out,retval]
An ISchemaItem object. The schema item that has the same name and namespace URI that are passed in through the parameters.

Return Values

S_OK
The value returned if successful.

E_INVALIDARG
The value returned if the name parameter returns NULL.

E_POINTER
The value returned if the item parameter returns NULL.

E_FAIL
The value returned if the named item is not found.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaItemCollection Interface

See Also

ISchemaItem Interface
itemType Property1
Using Namespaces in Schemas