Mexican postal codes are simple five-digit numbers, with the first two digits representing a region, followed by three digits for zone and locality
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.java2s.com" xmlns="http://www.java2s.com"
elementFormDefault="qualified">
<xs:simpleType name="mex_PostalCode" > <!-- "nnnnn" -->
<xs:restriction base="xs:positiveInteger" >
<xs:length value="5" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
Related examples in the same category