Поделиться через


unhandledAttributes Property

 

[This feature was only implemented for MSXML 6.0.]

Returns an ISchemaItemCollection object. This collection contains all the attributes that are not defined in the schema namespace.

In MSXML 6.0, if there are multiple schema locations for a schema, this property is not implemented.

Example

The following is an example of an unhandled attribute in a schema.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
            xmlns:catalog="http://www.example.microsoft.com/catalog">  
   <xsd:element name="book" id="bookID" catalog:attr="isbn"/>  
</xsd:schema>  

JScript Syntax

var oAttributes = oISchemaItem.unhandledAttributes;  

Parameters

None.

Return Values

oAttributes
An object. The collection of attributes that are not defined in the schema namespace.

Visual Basic Syntax

Set oAttributes = oISchemaItem.unhandledAttributes  

Parameters

None.

Return Values

oAttributes
An object. The collection of attributes that are not defined in the schema namespace.

C/C++ Syntax

HRESULT get_unhandledAttributes(ISAXAttributes** attributes);  

Parameters

attributes[out,retval]
An object. The collection of attributes that are not defined in the schema namespace.

Return Values

S_OK
The value returned if no errors are reported.

E_FAIL
The value returned if something is wrong.

Remarks

The return value of this property is a collection of unhandled attributes of the ISAXAttributes type.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaItem Interface

See Also

Using Other Namespaces
ISAXAttributes Interface