minLength defines the minimum number of units of length using a nonnegative integer : minLength « XML Schema « XML Tutorial






<xsd:simpleType name="productCodeType">
  <xsd:restriction base="xsd:string">
   <xsd:minLength value="5"/>
  </xsd:restriction>
</xsd:simpleType>








3.74.minLength
3.74.1.minLength defines the minimum number of units of length using a nonnegative integer
3.74.2.To specify the minimum length of an element:
3.74.3.minLength and maxLength facets are the minimum and maximum number of units permitted for the data type