xs:enumeration

Purpose This element enables you to define an enumeration type by restricting an existing type (the base type). The restriction is done by constraining the value set of the base type to the values for which an xs:enumeration element with a matching value attribute is given.
Parent element xs:restriction
Child elements None
Attributes value
Attributes
Name Type Description
value xs:string Allows you to specify an allowed value of the value space of the enumeration type to be defined.

Example

See the example for the xs:restriction element.