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

Element information

Namespace: http://www.w3.org/2001/XMLSchema

Schema document: XMLSchema.xsd

Other elements with the same name: xsd:choice

Type: xsd:simpleExplicitGroup

Properties: Local, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom type xsd:annotated
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>