For example, I want to create an element Title containing 3 choices: Mr., Mrs., Miss, so that users can only choose one of them. How can I do that?
Is this something like:
<xs:complexType name="Title">
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
Mr.
</xs:choice>
<xs:choice maxOccurs="unbounded" minOccurs="0">
Mrs.
</xs:choice>
<xs:choice maxOccurs="unbounded" minOccurs="0">
Miss
</xs:choice>
</xs:sequence>
</xs:complexType>