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

itemByQName Method

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.

[Script]

Implementation 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]

Implementation 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++]

Implementation 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.

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

ISchemaItem Interface | ISchemaItem Type Property | Using Namespaces in Schemas

Applies to: ISchemaItemCollection Interface