2.3.3.1 minmax

The minmax attribute group in XDR schema indicates how many times, and the minimum and maximum times, the element can appear in the context of parent element or group in the valid XML document. The following schema defines the minmax attribute:

 <xs:attributeGroup name="minmax">
  <xs:attribute name="minOccurs">
   <xs:simpleType name="minOccurs">
     <xs:restriction base="xs:string">
       <xs:enumeration value="0"/>
       <xs:enumeration value="1"/>
     </xs:restriction>
   </xs:simpleType>
  </xs:attribute>
  <xs:attribute name="maxOccurs">
   <xs:simpleType>
     <xs:restriction base="xs:string">
       <xs:enumeration value="1"/>
       <xs:enumeration value="*"/>     
     </xs:restriction>
   </xs:simpleType>
  </xs:attribute>
 </xs:attributeGroup>

minOccurs: Specifies minimum number of times an element can occur.

maxOccurs: Specifies maximum number of times an element can occur.

For usage information, see sections 2.3.1.6 and 2.3.1.8. By default, minOccurs has the value of 1, and maxOccurs has the value of 1; maxOccurs="*" means "unlimited number of times".