Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

Allow the document instance author to use the initial element twice

<xsd:element name="middleName">   <xsd:complexType>    <xsd:choice>     <xsd:element name="initial" type="xsd:string" maxOccurs="2"/>     <xsd:element name="name" type="xsd:string"/>    </xsd:choice>   </xsd:complexType> </xsd:element>