<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...> <xsd:complexType name="type-name"> <xsd:choice> <xsd:element name="element1"/> <xsd:element name="element2"/> </xsd:choice> </xsd:complexType> </schema>
Specifies that only one of the elements should be specified. [(element1 | element2)]
Choice content models can contain elements and any content model.
Use maxOccurs and minOccurs attributes to define the number of times the choice should (is allowed to) be repeated.