Schema Central > XML Schema 1.1 > XMLSchema.xsd > xsd:choice
Advanced search
Need Schema Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:choice

See http://www.w3.org/TR/xmlschema11-1/#element-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

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom type xsd:annotated
minOccurs [0..1]xsd:nonNegativeIntegerDefault value is "1". from group xsd:occurs
maxOccurs [0..1]xsd:allNNIDefault value is "1". from group xsd:occurs
Any attribute[0..*]Namespace: ##other, Process Contents: lax

Used in

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>