<?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 - Standard 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 Standard 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 = "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 = "latitude" type = "xsd:double"/>
			<xsd:element name = "longitude" type = "xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
