Some Advantages of Schemas


For example, the type:

  <simpleType name="Dutch_ZIP_Code">
    <restriction base="string">
      <xsd:pattern value="\d{4} {0,1}[A-Z]{2}"/>
    </restriction>
  </simpleType>

defines the Dutch ZIP codes of the type "1183 NW" or "1183NW".