schema Property1

 

[This feature was only implemented for MSXML 6.0.]

Returns an ISchema object for this property of the ISchemaItem object. The object returned is the XML Schema to which the schema item validates. The ISchema interface is used to examine further information about the object. This property will return NULL for built-in data types if the schema item has an itemType of SOMITEM_DATATYPE_XXX and a built-in complex anyType, or if the schema item is itself an ISchema object**.** The NULL value is returned to prevent circular referencing.

JScript Syntax

var oSchema = oISchemaItem.schema;  

Parameters

None.

Return Values

oSchema
An object. The parent XML Schema of the item.

Visual Basic Syntax

Set oSchema = oISchemaItem.schema  

Parameters

None.

Return Values

oSchema
An object. The parent XML Schema of the item.

C/C++ Syntax

HRESULT get_schema(ISchema* schema);  

Parameters

schema [out,retval]
An object. The parent XML Schema of the item.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the schema object is NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaItem Interface

See Also

ISchema Interface
Using Other Namespaces