xsd:choice
Element information
Namespace: http://www.w3.org/2001/XMLSchema
Schema document: XMLSchema.xsd
Other elements with the same name: xsd:choice
Type: xsd:explicitGroup
Properties: Global, Qualified, ID: choice
Content
- Sequence [1..1]
- xsd:annotation [0..1]
- Choice [0..*]
from group xsd:nestedParticle
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | from type xsd:annotated | |
minOccurs | [0..1] | xsd:nonNegativeInteger | Default value is "1". from group xsd:occurs | |
maxOccurs | [0..1] | xsd:allNNI | Default value is "1". from group xsd:occurs | |
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax |
Used in
- Group xsd:complexTypeModel via reference to xsd:typeDefParticle
- Group xsd:nestedParticle
- Group xsd:particle
- Group xsd:typeDefParticle
- Type xsd:complexRestrictionType via reference to xsd:typeDefParticle (Element xsd:restriction)
- Type xsd:complexType via reference to xsd:complexTypeModel
- Type xsd:explicitGroup via reference to xsd:nestedParticle (Elements xsd:choice, xsd:sequence)
- Type xsd:extensionType via reference to xsd:typeDefParticle (Element xsd:extension)
- Type xsd:group via reference to xsd:particle
- Type xsd:localComplexType via reference to xsd:complexTypeModel (Element xsd:complexType)
- Type xsd:realGroup
- Type xsd:restrictionType via reference to xsd:typeDefParticle
- Type xsd:simpleExplicitGroup via reference to xsd:nestedParticle (Elements xsd:choice, xsd:sequence)
- Type xsd:topLevelComplexType via reference to xsd:complexTypeModel (Element xsd:complexType)
Sample instance
<xsd:choice> <xsd:element> <xsd:simpleType> <xsd:restriction base="QName">... </xsd:restriction> </xsd:simpleType> <xsd:alternative> <xsd:simpleType>... </xsd:simpleType> </xsd:alternative> <xsd:unique> <xsd:selector xpath="token">... </xsd:selector> <xsd:field xpath="token">... </xsd:field> </xsd:unique> </xsd:element> </xsd:choice>