<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.java2java.com" xmlns="http://www.java2java.com"
elementFormDefault="qualified">
<xs:simpleType name="nanp_GenericPhoneNumber">
<xs:restriction base="xs:positiveInteger">
<xs:pattern value="[2-9](([0-9]{6})|([0-9]{9}))" />
</xs:restriction>
</xs:simpleType>
<xs:element name="PhoneNumber" type="nanp_GenericPhoneNumber"/>
</xs:schema>
XML data that conforms to this description might look something like this:
<PhoneNumber>3135551212</PhoneNumber>
|