Partager via


ISchemaElement Interface

 

[This feature was only implemented for MSXML 6.0.]

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.

JScript 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 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++ 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.

Requirements

Implementation: msxml6.dll, msxml6.lib

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

Inheritance: Inherits from the ISchemaParticle interface.

Versioning

Implemented in: MSXML 6.0

See Also

Declaring Elements
SOM Reference