Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

Define a pattern that can be used for zip codes

<xsd:simpleType name="zipType">   <xsd:restriction base="xsd:string">    <xsd:pattern value="[0-9]{5}"/>   </xsd:restriction> </xsd:simpleType>