<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
	 version = ""
	 elementFormDefault = "qualified">

	<xsd:annotation>
		<xsd:documentation>
United States 5-Digit ZIP Code Database - Premium Edition Schema
Copyright (C) 2005 www.datanetworksource.com
All rights reserved.
        </xsd:documentation>
	</xsd:annotation>
	<xsd:complexType name = "zipdata">
		<xsd:annotation>
			<xsd:documentation>United States 5-digit ZIP Code Premium Edition data master.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name = "zip">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{5}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "city">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "28"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "county">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "25"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "statename">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "28"/>
					</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 = "citytype">
				<xsd:annotation>
					<xsd:documentation>Default (preferred) city name recognized by the USPS</xsd:documentation>
					<xsd:documentation>Default (preferred) organization name recognized by the USPS</xsd:documentation>
					<xsd:documentation>Alternate city name accepted by the USPS</xsd:documentation>
					<xsd:documentation>Not-recommended, used or accepted, by the USPS</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "D"/>
						<xsd:enumeration value = "B"/>
						<xsd:enumeration value = "A"/>
						<xsd:enumeration value = "N"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "ziptype">
				<xsd:annotation>
					<xsd:documentation>Standard delivery</xsd:documentation>
					<xsd:documentation>PO Box Only</xsd:documentation>
					<xsd:documentation>Organization</xsd:documentation>
					<xsd:documentation>Military</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "S"/>
						<xsd:enumeration value = "P"/>
						<xsd:enumeration value = "U"/>
						<xsd:enumeration value = "M"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "fips_state">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{2}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "fips_county">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{3}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "areacode">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "64"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "gmt">
				<xsd:annotation>
					<xsd:documentation>Newfoundland UTC -3:30 hours</xsd:documentation>
					<xsd:documentation>Atlantic UTC -4 hours</xsd:documentation>
					<xsd:documentation>Eastern UTC -5 hours</xsd:documentation>
					<xsd:documentation>Central UTC -6 hours</xsd:documentation>
					<xsd:documentation>Mountain UTC -7 hours</xsd:documentation>
					<xsd:documentation>Pacific UTC -8 hours</xsd:documentation>
					<xsd:documentation>Alaskan UTC -9 hours</xsd:documentation>
					<xsd:documentation>Hawaiian-Aleutian UTC -10 hours</xsd:documentation>
					<xsd:documentation>Samoa UTC -11 (American Samoa)</xsd:documentation>
					<xsd:documentation>Chamorro UTC +10 (Guam and Northern Mariana Islands)</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "NT"/>
						<xsd:enumeration value = "AT"/>
						<xsd:enumeration value = "ET"/>
						<xsd:enumeration value = "CT"/>
						<xsd:enumeration value = "MT"/>
						<xsd:enumeration value = "PT"/>
						<xsd:enumeration value = "AK"/>
						<xsd:enumeration value = "HT"/>
						<xsd:enumeration value = "AS"/>
						<xsd:enumeration value = "CH"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "dst" type = "xsd:boolean"/>
			<xsd:element name = "latitude" type = "xsd:double"/>
			<xsd:element name = "longitude" type = "xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name = "fipsdata">
		<xsd:annotation>
			<xsd:documentation>United States county cross-reference.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name = "fips_state">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{2}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "fips_county">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:pattern value = "\d{3}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "county">
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:maxLength value = "25"/>
					</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 = "county_type">
				<xsd:annotation>
					<xsd:documentation>All counties located within the 25 largest MSA's</xsd:documentation>
					<xsd:documentation>All counties not included in (A) with a population over 150,000 or Located within an MSA having a population over 150,000.</xsd:documentation>
					<xsd:documentation>All counties not included in (A) or (B) with a population over 35,000 or located within an MSA having a population over 35,000.</xsd:documentation>
					<xsd:documentation>All other counties not included in (A), (B), or (C).</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "A"/>
						<xsd:enumeration value = "B"/>
						<xsd:enumeration value = "C"/>
						<xsd:enumeration value = "D"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name = "population" type = "xsd:double"/>
			<xsd:element name = "la_miles" type = "xsd:double"/>
			<xsd:element name = "wa_miles" type = "xsd:double"/>
			<xsd:element name = "name_type">
				<xsd:annotation>
					<xsd:documentation>Census Area</xsd:documentation>
					<xsd:documentation>Borough</xsd:documentation>
					<xsd:documentation>County</xsd:documentation>
					<xsd:documentation>District</xsd:documentation>
					<xsd:documentation>Municipio</xsd:documentation>
					<xsd:documentation>Parish</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base = "xsd:string">
						<xsd:enumeration value = "A"/>
						<xsd:enumeration value = "B"/>
						<xsd:enumeration value = "C"/>
						<xsd:enumeration value = "D"/>
						<xsd:enumeration value = "M"/>
						<xsd:enumeration value = "P"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>