XML Tutorial/XML Schema/maxInclusive
maxInclusive Defines the inclusive upper bound for a datatype with the ordered property
<xsd:simpleType name="editionType">
<xsd:restriction base="xsd:nonNegativeInteger">
<xsd:minInclusive value="1"/>
<xsd:maxInclusive value="10"/>
</xsd:restriction>
</xsd:simpleType>
The xsd:maxInclusive facet specifies the highest possible value for an element.
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.wbex.ru" xmlns="http://www.wbex.ru"
elementFormDefault="qualified">
<xsd:element name="population">
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:maxInclusive value="5000" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:schema>
File: Data.xml
<?xml version="1.0"?>
<population xmlns="http://www.wbex.ru">4999</population>