Facets: minInclusive and maxInclusive

The minInclusive and maxInclusive facets are used to define the minimum and maximum numeric value that an element can contain. For example, in the following code snippet, the minInclusive and maxInclusive facets indicate that the EmpAge element can contain only integer values between 0 and 100.

    <xs:restriction base="xs:integer">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="100"/>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="EmpAge">
    <xs:simpleType>
      <xs:restriction base="xs:integer">
        <xs:minInclusive value="0"/>
        <xs:maxInclusive value="100"/>
      </xs:restriction>

    </xs:simpleType>
  </xs:element>

// Additional declarations...
Click the Next button to continue.