xsd.ElementDeclaration

Element declarations provide for: (i) Local validation of element information item values using a type definition; (ii) Specifying default or fixed values for element information items; (iii) Establishing uniquenesses and reference constraint relationships among the values of related elements and attributes; (iv) Controlling the substitutability of elements through the mechanism of element substitution groups.

class xsd.ElementDeclaration

Attributes

xsd.ElementDeclaration.abstract

An xs:boolean value. Required.

xsd.ElementDeclaration.annotations

A sequence of Annotation components.

xsd.ElementDeclaration.disallowed_substitutions

A subset of {extension, restriction}.

xsd.ElementDeclaration.identity_constraint_definitions

A set of IdentityConstraintDefinition components.

xsd.ElementDeclaration.name

An xs:NCName value. Required.

xsd.ElementDeclaration.nillable

An xs:boolean value. Required.

xsd.ElementDeclaration.scope

A Scope property record. Required.

xsd.ElementDeclaration.substitution_group_affiliations

A set of ElementDeclaration components.

xsd.ElementDeclaration.substitution_group_exclusions

A subset of {extension, restriction}.

xsd.ElementDeclaration.target_namespace

An xs:anyURI value. Optional.

xsd.ElementDeclaration.type_definition

A Type Definition component. Required.

xsd.ElementDeclaration.type_table

A TypeTable property record. Optional.

xsd.ElementDeclaration.value_constraint

A ValueConstraint property record. Optional.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__