<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
	 version = ""
	 elementFormDefault = "qualified">
	<xsd:annotation>
		<xsd:documentation>
NPA NXX Database - Wire Center Edition Schema
Copyright (C) 2006 npanxxsource.com
All rights reserved.
        </xsd:documentation>
	</xsd:annotation>
	<xsd:complexType name = "npanxx">
		<xsd:annotation>
			<xsd:documentation>NPA NXX Combinations.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name = "NPA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:integer">
						<xsd:maxInclusive value = "999"/>
						<xsd:minInclusive value = "200"/>
						<xsd:totalDigits value = "3"/>
						<xsd:pattern value = "\d{3}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<xsd:element name = "NXX">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:integer">
						<xsd:maxInclusive value = "999"/>
						<xsd:minInclusive value = "200"/>
						<xsd:totalDigits value = "3"/>
						<xsd:pattern value = "\d{3}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<xsd:element name = "LATA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "5"/>
						<xsd:minLength value = "3"/>
						<xsd:pattern value = "\d{3|5}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "LTYPE">
				<xsd:annotation>
					<xsd:documentation>Wireline, non-wireless service including POTS, Broadband etc.</xsd:documentation>
					<xsd:documentation>Wireless type service including PCS, Cellular, GSM, etc.</xsd:documentation>
					<xsd:documentation>Paging and other Messaging services.</xsd:documentation>
					<xsd:documentation>Multiple carriers are associated with the NPA NXX at either the 10,000-block or 1,000-block levels and type of service could not be determined.</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "S"/>
						<xsd:enumeration value = "C"/>
						<xsd:enumeration value = "P"/>
						<xsd:enumeration value = "M"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "STATE">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "[A-Z]{2}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "COUNTRY">
				<xsd:annotation>
					<xsd:documentation>US - United States (US)</xsd:documentation>
					<xsd:documentation>CA - Canada (CA)</xsd:documentation>
					<xsd:documentation>BS - Bahamas (BA)</xsd:documentation>
					<xsd:documentation>BB - Barbados (BD)</xsd:documentation>
					<xsd:documentation>AI - Anguilla (AI)</xsd:documentation>
					<xsd:documentation>AG - Antigua and Barbuda (AN)</xsd:documentation>
					<xsd:documentation>VG - Virgin Islands, British (BV)</xsd:documentation>
					<xsd:documentation>KY - Cayman Islands (CQ)</xsd:documentation>
					<xsd:documentation>BM - Bermuda (BM)</xsd:documentation>
					<xsd:documentation>GD - Grenada (GN)</xsd:documentation>
					<xsd:documentation>TC - Turks and Caicos Islands (TC)</xsd:documentation>
					<xsd:documentation>MS - Montserrat (RT)</xsd:documentation>
					<xsd:documentation>LC - Saint Lucia (SA)</xsd:documentation>
					<xsd:documentation>DM - Dominica (DM)</xsd:documentation>
					<xsd:documentation>VC - Saint Vincent and the Grenadines (ZF)</xsd:documentation>
					<xsd:documentation>DO - Dominican Republic (DR)</xsd:documentation>
					<xsd:documentation>TT - Trinidad and Tobago (TR)</xsd:documentation>
					<xsd:documentation>KN - Saint Kitts and Nevis (KA)</xsd:documentation>
					<xsd:documentation>JM - Jamaica (JM)</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "US"/>
						<xsd:enumeration value = "CA"/>
						<xsd:enumeration value = "BS"/>
						<xsd:enumeration value = "BB"/>
						<xsd:enumeration value = "AI"/>
						<xsd:enumeration value = "AG"/>
						<xsd:enumeration value = "VG"/>
						<xsd:enumeration value = "KY"/>
						<xsd:enumeration value = "BM"/>
						<xsd:enumeration value = "GD"/>
						<xsd:enumeration value = "TC"/>
						<xsd:enumeration value = "MS"/>
						<xsd:enumeration value = "LC"/>
						<xsd:enumeration value = "DM"/>
						<xsd:enumeration value = "VC"/>
						<xsd:enumeration value = "DO"/>
						<xsd:enumeration value = "TT"/>
						<xsd:enumeration value = "KN"/>
						<xsd:enumeration value = "JM"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "RC">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "255"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "ZIP" type = "xsd:string"/>
			<xsd:element name = "FIPS">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{5}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "CBSA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{5}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "MSA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{4}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "PMSA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{4}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "LATITUDE" type = "xsd:double"/>
			<xsd:element name = "LONGITUDE" type = "xsd:double"/>
			<xsd:element name = "DERIVED_FROM_NPA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "20"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "NEWNPA">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:integer">
						<xsd:maxInclusive value = "999"/>
						<xsd:minInclusive value = "200"/>
						<xsd:totalDigits value = "3"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "OVERLAY">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "O">
                            <xsd:annotation>
                                <xsd:documentation>the NPA is overlaid by one or more NPAS or this NPA overlays one or more NPAS. The DERIVED_FROM_NPA field may be used to determine the overlay direction.</xsd:documentation>
                            </xsd:annotation>
						</xsd:enumeration>

						<xsd:enumeration value = "P">
                            <xsd:annotation>
					            <xsd:documentation>the NPA is involved in a DERIVED_FROM_NPA split and the exchange is being moved from the NEWNPA parent. If the NEWNPA field is empty, the exchange is remaining in the current NPA and is protected from re-assignment during the split.</xsd:documentation>
                            </xsd:annotation>
						</xsd:enumeration>

						<xsd:enumeration value = "S">
                            <xsd:annotation>
					            <xsd:documentation>the NPA is being split and the exchange is moving from the current NPA to the NEWNPA</xsd:documentation>
                            </xsd:annotation>
						</xsd:enumeration>

						<xsd:enumeration value = "">
                            <xsd:annotation>
					            <xsd:documentation>empty - if DERIVED_FROM_NPA is not empty then NPA was created from a geographic split of DERIVED_FROM_NPA.</xsd:documentation>
                            </xsd:annotation>
						</xsd:enumeration>

					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

</xsd:schema>