Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

A phone number

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