id Property

MSXML 5.0 SDK

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

id Property

Returns an identifier for the schema item in the form of a string. This identifier is the id attribute in the declaration of the item.

Example

The following is an example of the id attribute, used in an XML Schema.

<schema xmlns="http://www.w3.org/2001/XMLSchema">
   <element name="book" id="bookID"/>
</schema>
[Script]

Implementation Syntax

var strID = oISchemaItem.id;

Parameters

None.

Return Values

strID
A string. The id attribute of the schema item.
[Visual Basic]

Implementation Syntax

strID = oISchemaItem.id

Parameters

None.

Return Values

strID
A string. The id attribute of the schema item.
[C/C++]

Implementation Syntax

HRESULT get_id(BSTR* id);

Parameters

id [out,retval]
A string. The id attribute of the schema item.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the id parameter 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

Declaring Attributes | Declaring Elements

Applies to: ISchemaItem Interface