Provides information about element items. You obtain ISchemaElement items by using the ISchema.elements property, the ISchemaElement.substitutionGroup property, or the ISchemaModelGroup.particles property.
| defaultValue | Retrieves the default value of the element. |
| disallowedSubstitutions | Retrieves the disallowed substitutions. |
| fixedValue | Retrieves the fixed value of the element. |
| identityConstraints | Retrieves the collection of ISchemaIdentityConstraint objects. |
| isAbstract | Returns a true value if the element object being queried has an abstract attribute value of true. |
| isNillable | Retrieves the value of the nillable attribute of the element. |
| isReference | Retrieves whether the element object is a reference to a top-level <element> declaration. |
| scope | Retrieves the element definition type, either global or complex. |
| substitutionGroup | Retrieves the ISchemaElement object. |
| substitutionGroupExclusions | Retrieves the substitution group exclusions. |
| type | Retrieves the type of the element. |
var oElements = oSchema.elements; var oSchemaElement = oSchemaElement.item(index);
Set oElements = oSchema.elements Set oElement = oElements.item(index)
HRESULT get_elements (ISchemaItemCollection** elements); HRESULT elements->get_item(long index, ISchemaElement** element);
MSXML 4.0 and later
Implementation: msxml5.dll, msxml2.lib
Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl
Inheritance: Inherits from the ISchemaParticle 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 Elements | SOM Reference