Share via


name Property (ISchemaItem)

 

[This feature was only implemented for MSXML 6.0.]

Returns a name for the schema item in the form of a string. The name is the schema attribute name in the declaration of the item.

Example

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

<schema>  
<element name="title"/>  
</schema>  

JScript Syntax

var strName = oISchemaItem.name;  

Parameters

None.

Return Values

strName
A string. The name attribute of the schema item.

Visual Basic Syntax

strName = oISchemaItem.name  

Parameters

None.

Return Values

strName
A string. The name attribute of the schema item.

C/C++ Syntax

HRESULT get_name(BSTR* name);  

Parameters

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

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the name parameter returns NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaItem Interface

See Also

Declaring Attributes
Declaring Elements