ISchemaElement Interface

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

ISchemaElement Interface

Provides information about element items. You obtain ISchemaElement items by using the ISchema.elements property, the ISchemaElement.substitutionGroup property, or the ISchemaModelGroup.particles property.

Properties

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.

[Script]

Implementation Syntax

var oElements = oSchema.elements;
var oSchemaElement = oSchemaElement.item(index);

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.
[Visual Basic]

Implementation Syntax

Set oElements = oSchema.elements
Set oElement = oElements.item(index)

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.
[C/C++]

Implementation Syntax

HRESULT get_elements (ISchemaItemCollection** elements);
HRESULT elements->get_item(long index, ISchemaElement** element);

Parameters

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

Versioning

MSXML 4.0 and later

Requirements

[Visual Basic, C/C++]

Implementation: msxml5.dll, msxml2.lib

[C/C++]

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 Language Filter in the upper-left corner of the page.

See Also

Declaring Elements | SOM Reference