ISchemaAttribute Interface

 

[This feature was only implemented for MSXML 6.0.]

Provides information about attribute items. Use the ISchema.attributes property to obtain ISchemaAttribute items.

The following example shows ISchemaAttribute objects being created.

Dim oSchema as MSXML2.ISchema
Dim oSchemaAttr as MSXML2.ISchemaAttribute

Set oSchemaAttr = oSchema.attributes

defaultValueRetrieves the default value of the attribute.
fixedValueRetrieves the fixed value of the attribute.
isReferenceRetrieves whether the attribute object is a reference to a top-level <element> declaration.
scopeRetrieves the element definition type, either global or complex.
typeRetrieves the type of the attribute.
useRetrieves the use style for the attribute
var oAttributes = oSchema.attributes;  
var oAttribute = oAttributes(index);  

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.

Set oAttributes = oSchema.attributes  
Set oAttribute = oAttributes(index)  

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.

HRESULT get_attributes (ISchemaItemCollection** attributes);  
HRESULT attributes->get_item(long index, ISchemaAttribute** attribute);  

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.

Implementation: msxml6.dll, msxml6.lib

Header and LIB files: msxml6.h, msxml6.lib, msxml6.idl

Inheritance: Inherits from the ISchemaItem interface.

Implemented in: MSXML 6.0

Declaring Attributes
SOM Reference

Show: