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 MSXML5.ISchema Dim oSchemaAttr as MSXML5.ISchemaAttribute Set oSchemaAttr = oSchema.attributes
| defaultValue | Retrieves the default value of the attribute. |
| fixedValue | Retrieves the fixed value of the attribute. |
| isReference | Retrieves whether the attribute object is a reference to a top-level <element> declaration. |
| scope | Retrieves the element definition type, either global or complex. |
| type | Retrieves the type of the attribute. |
| use | Retrieves the use style for the attribute |
var oAttributes = oSchema.attributes; var oAttribute = oAttributes(index);
Set oAttributes = oSchema.attributes Set oAttribute = oAttributes(index)
HRESULT get_attributes (ISchemaItemCollection** attributes); HRESULT attributes->get_item(long index, ISchemaAttribute** attribute);
MSXML 4.0 and later
Implementation: msxml5.dll, msxml2.lib
Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl
Inheritance: Inherits from the ISchemaItem interface.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button
in the upper-left corner of the page.
Declaring Attributes | SOM Reference