<?xml version="1.0" encoding="UTF-8"?><!-- "V2.1  2005 09 05             Change to ref NaPT stop 2.1 (Make Landmark and street optional)         2006 11 07            Correct schema level attribute to 2.1 --><!-- (c) Crown Copyright 2000-2006   --><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:napt="http://www.naptan.org.uk/" xmlns="http://www.naptan.org.uk/" targetNamespace="http://www.naptan.org.uk/" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="NPTG">	<xsd:annotation>		<xsd:appinfo xmlns:gms="http://www.govtalk.gov.uk/CM/gms">			<Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">				<Aggregation>main schema</Aggregation>				<Audience>e-service developers</Audience>				<Contributor>Revised for version 2.1 Kizoom Limited, by Tom White, Nicholas Knowles. mailto:schemer@kizoom.com</Contributor>				<Contributor>Roger Slevin [Roger.Slevin@dft.gsi.gov.uk]</Contributor>				<Contributor>Paul Robinson [ carlbro ]</Contributor>				<Contributor>Richard Mejia [ carlbro ]</Contributor>				<Coverage>United Kingdom</Coverage>				<Creator>Created as W3C .xsd schema by Kizoom  as 2.0 XML schema, Tom White, Nicholas Knowles. mailto:schemer@kizoom.com</Creator>				<Date>					<Created>2004-04-10</Created>				</Date>				<Date>					<Modified>2004-07-08</Modified>				</Date>				<Date>					<Modified>2004-08-26</Modified>				</Date>				<Date>					<Modified>2004-11-03</Modified>				</Date>				<Date>					<Modified>2005-09-05</Modified>				</Date>				<Description>					<p>The National Public Transport Gazetteer is a UK nationwide system for identifying towns and settlement that are accessed by  Public Transport. It is used both to organise UK Stop data as described by the related NaPTAN standard, and to identify web services that access the data.</p>				</Description>				<Format>					<MediaType>text/xml</MediaType>					<Syntax>http://www.w3.org/2001/XMLSchema</Syntax>					<Description>XML schema, W3C Recommendation 2001</Description>				</Format>				<Identifier>{http://www.naptan.org.uk/schemas/2.1}NPTG.xsd</Identifier>				<Language>[ISO 639-2/B] ENG</Language>				<Publisher>Department for Transport, Great Minster House, 76 Marsham Street, London SW1P 4DR</Publisher>				<Relation>					<Requires>http://www.naptan.org.uk/schemas/2.1napt/NaPT_stop-v2-1.xsd</Requires>				</Relation>				<Rights>Unclassified                            <Copyright>Crown Copyright 2000-2004</Copyright>				</Rights>				<Source>					<ul>						<li>Originally developed as csv  in 2000 By Mike Ness, Richard Shaw, Atkins.</li>						<li>Turned into Xml  schema as Version 2.0, 2004 by Tom White, Nick Knowles</li>					</ul>				</Source>				<Status>Version 2.1 </Status>				<Subject>					<Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,Air transport, Airports,Ports and maritime transport, Ferries (marine),Public transport, Bus services, Coach services, Bus stops and stations,Rail transport, Railway stations and track, Train services, Underground trains,Business and industry, Transport, Air transport , Ports and maritime transport, Public transport,Rail transport, Roads and road transport</Category>					<Project>Transport Direct</Project>				</Subject>				<Title>XML schema for the National Public Transport Gazetteer, a UK database of towns and settlement that are accessible  by  Public Transport. </Title>				<Type>Standard</Type>			</Metadata>		</xsd:appinfo>	</xsd:annotation>	<!-- ======================================================================= -->	<xsd:include schemaLocation="napt/NaPT_stop-v2-1.xsd"/>	<xsd:element name="NationalPublicTransportGazetteer">		<xsd:annotation>			<xsd:documentation>Schema for exchanging National Public Transport Gazetteer data.@xml:lang@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status,@FileName,@SchemaVersion,@LocationSystem</xsd:documentation>		</xsd:annotation>		<xsd:complexType>			<xsd:sequence>				<xsd:element name="Regions" type="RegionsStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Definitions of NPTG regions.</xsd:documentation>					</xsd:annotation>				</xsd:element>				<xsd:element name="NptgLocalities" type="NptgLocalitiesStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Definitions of NPTG Localities.</xsd:documentation>					</xsd:annotation>				</xsd:element>				<xsd:element name="PlusbusZones" type="PlusbusZonesStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>definitions of PlusbusZones</xsd:documentation>					</xsd:annotation>				</xsd:element>			</xsd:sequence>			<xsd:attributeGroup ref="DocumentModificationDetailsGroup"/>			<xsd:attribute name="SchemaVersion" type="xsd:NMTOKEN" use="required" fixed="2.1"/>			<xsd:attribute name="LocationSystem" type="LocationSystemEnumeration" use="optional" fixed="Grid"/>		</xsd:complexType>		<xsd:key name="RegionKey">			<xsd:selector xpath=".//napt:Regions/napt:Region"/>			<xsd:field xpath="napt:RegionCode"/>		</xsd:key>		<xsd:keyref name="RegionKeyRef" refer="RegionKey">			<xsd:selector xpath=".//napt:RegionRef"/>			<xsd:field xpath="."/>		</xsd:keyref>		<xsd:unique name="AdministrativeAreaKey">			<xsd:selector xpath=".//napt:AdministrativeAreas/napt:AdministrativeArea"/>			<xsd:field xpath="AdministrativeAreaCode"/>		</xsd:unique>		<xsd:unique name="NptgDistrict">			<xsd:selector xpath=".//napt:NptgDistricts/napt:NptgDistrict"/>			<xsd:field xpath="NptgDistrictCode"/>		</xsd:unique>		<xsd:key name="NptgLocalityKey">			<xsd:selector xpath=".//napt:NptgLocalities/napt:NptgLocality"/>			<xsd:field xpath="napt:NptgLocalityCode"/>		</xsd:key>		<xsd:keyref name="NptgLocalityKeyRef" refer="NptgLocalityKey">			<xsd:selector xpath=".//napt:NptgLocalityRef"/>			<xsd:field xpath="."/>		</xsd:keyref>		<xsd:unique name="PlusbusZoneKey">			<xsd:selector xpath=".//napt:PlusbusZones/napt:PlusbusZone"/>			<xsd:field xpath="PlusbusZoneCode"/>		</xsd:unique>	</xsd:element>	<xsd:complexType name="RegionsStructure">		<xsd:annotation>			<xsd:documentation>Collection of regions</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="Region" type="RegionStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>A Traveline region serving a part of the UK.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="RegionStructure">		<xsd:annotation>			<xsd:documentation>Traveline Region</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="RegionCode" type="RegionCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the region.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">				<xsd:annotation>					<xsd:documentation>Name of the region. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Country" type="CountryEnumeration">				<xsd:annotation>					<xsd:documentation>Country of region. Enumerated value.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AdministrativeAreas" type="AdministrativeAreasStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Areas making up the region.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="AdministrativeAreasStructure">		<xsd:annotation>			<xsd:documentation>Collection of AdministrativeAreas</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="AdministrativeArea" type="AdministrativeAreaStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>Administrative area managing data for part of the region.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="AdministrativeAreaStructure">		<xsd:annotation>			<xsd:documentation>An administrative Area</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="AdministrativeAreaCode" type="napt:AdministrativeAreaCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the area.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AtcoAreaCode" type="napt:AtcoAreaCodeType">				<xsd:annotation>					<xsd:documentation>ATCO code for area.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">				<xsd:annotation>					<xsd:documentation>Name of the area. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ShortName" type="napt:NaturalLanguagePlaceNameStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Short name of area, to use as qualifier.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NptgDistricts" type="NptgDistrictsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Definitions of districts.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="MaximumLengthForShortNames" type="xsd:positiveInteger" default="24" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Length limit for StopPoint Short CommonName instances for area. </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="National" type="xsd:boolean" default="false" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Whether area administers stops nationally, or only  for its own area  (the default). For areas that issue stop types nationally (the '9nn' admin areas) this should be set to true</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NaptanPrefixes" minOccurs="0">				<xsd:annotation>					<xsd:documentation>NaptanCode prefixes associated with area. Prefixes are used for allocating NaptanCode instances for stops so that the location can be determined from SMS requests. Each administrative area has its own resreved prefixes.</xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence maxOccurs="unbounded">						<xsd:element name="AlphaPrefix" type="NaptanAlphaPrefixType">							<xsd:annotation>								<xsd:documentation>Alpha8 character set prefix associated with area. A given prefix must be unique to one area only.</xsd:documentation>							</xsd:annotation>						</xsd:element>					</xsd:sequence>				</xsd:complexType>			</xsd:element>			<xsd:element name="CleardownRange" minOccurs="0">				<xsd:annotation>					<xsd:documentation>NaPTAN StopPoint CleardownCode ranges associated with area. Prefixes are used for allocating. StopPoint CleardownCode. Each area is allocated a unique range. Cleardown codes are only allocated to stops that need them so as to conserve numbers.  </xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence maxOccurs="unbounded">						<xsd:element name="CleardownStart" type="xsd:positiveInteger">							<xsd:annotation>								<xsd:documentation>Start of CleardownCode prefix associated with area. A given range must be allocated to one area only. </xsd:documentation>							</xsd:annotation>						</xsd:element>						<xsd:element name="CleardownEnd" type="xsd:positiveInteger">							<xsd:annotation>								<xsd:documentation>End of CleardownCode range associated with area. A given range must be allocated to one area only. </xsd:documentation>							</xsd:annotation>						</xsd:element>					</xsd:sequence>				</xsd:complexType>			</xsd:element>			<xsd:element name="ContactEmail" type="EmailAddressType" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Administrative contact email for data queries. Should be a general address rather than an individual. </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ContactTelephone" type="TelephoneContactStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Administrative contact phone for data queries.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="NptgDistrictsStructure">		<xsd:annotation>			<xsd:documentation>Collection </xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NptgDistrict" type="NptgDistrictStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>A district with the UK. Corresponds to a unitary authority. Disjoint area of the UK.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="NptgDistrictStructure">		<xsd:annotation>			<xsd:documentation>NPTG District.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NptgDistrictCode" type="NptgDistrictCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the district.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">				<xsd:annotation>					<xsd:documentation>Name of the district. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="ModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="NptgLocalitiesStructure">		<xsd:annotation>			<xsd:documentation>Collection of localities.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NptgLocality" type="NptgLocalityStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>A UK town or settlement that may have public transport services and PTANs. @CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="NptgLocalityStructure">		<xsd:annotation>			<xsd:documentation>NPTG Locality.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NptgLocalityCode" type="NptgLocalityCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the locality.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Descriptor" type="NptgLocalityDescriptorStructure">				<xsd:annotation>					<xsd:documentation>Structured text descriptor of locality</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AlternativeDescriptors" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Collection of Aliases.</xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence>						<xsd:element name="Descriptor" maxOccurs="unbounded">							<xsd:annotation>								<xsd:documentation>Alternative name for the locality. @lang.</xsd:documentation>							</xsd:annotation>							<xsd:complexType>								<xsd:complexContent>									<xsd:extension base="NptgLocalityDescriptorStructure">										<xsd:attributeGroup ref="napt:ModificationDetailsGroup"/>									</xsd:extension>								</xsd:complexContent>							</xsd:complexType>						</xsd:element>					</xsd:sequence>					<xsd:attributeGroup ref="ModificationDetailsGroup"/>				</xsd:complexType>			</xsd:element>			<xsd:element name="ParentNptgLocalityRef" type="NptgLocalityVersionedRefStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Parent locality. Reference to another locality that contains the child locality completely. Must not be cyclic.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AdministrativeAreaRef" type="AdministrativeAreaCodeType">				<xsd:annotation>					<xsd:documentation>Administrative area that manages the locality.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NptgDistrictRef" type="NptgDistrictCodeType" minOccurs="0">				<xsd:annotation>					<xsd:documentation>District to which locality belongs.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AdjacentLocalities" type="napt:NptgLocalityRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Localities which are adjacent to the locality.  or which partially overlay. NB this should not be used for containment. Instead the ParentRef should be used for localities which completely contain the locality, and on child localities for localities completely contained in the locality. </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="SourceLocalityType" type="NptgSourceLocalityTypeEnumeration">				<xsd:annotation>					<xsd:documentation>Classification of the Locality in the original source material used to compile the gazetteer. Enumerated value.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="LocalityClassification" type="NptgLocalityClassificationEnumeration" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Classification of the Locality as a settlement. Enumerated value.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Location" type="LocationStructure">				<xsd:annotation>					<xsd:documentation>Spatial coordinates of the locality.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>	</xsd:complexType>	<!-- ======================================================================= -->	<!-- Types - should go into a types schema -->	<xsd:complexType name="NptgLocalityDescriptorStructure">		<xsd:sequence>			<xsd:element name="LocalityName" type="napt:NaturalLanguagePlaceNameStructure">				<xsd:annotation>					<xsd:documentation>Name of the locality. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ShortName" type="napt:NaturalLanguagePlaceNameStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Short name for locality to be used when qualifying children. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Qualify" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Qualifier to use when presenting name to distinguish it from other similarly named elements.</xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence>						<xsd:element name="QualifierName" type="napt:NaturalLanguagePlaceNameStructure">							<xsd:annotation>								<xsd:documentation>Qualifying name. Place name characters only allowed. @lang </xsd:documentation>							</xsd:annotation>						</xsd:element>						<xsd:choice minOccurs="0">							<xsd:annotation>								<xsd:documentation>Qualifier Relationship</xsd:documentation>							</xsd:annotation>							<xsd:element name="NptgLocalityRef" type="napt:NptgLocalityRefStructure">								<xsd:annotation>									<xsd:documentation>Qualifier corresponds to the short name of the  specified locality.</xsd:documentation>								</xsd:annotation>							</xsd:element>							<xsd:element name="NptgDistrictRef" type="EmptyType">								<xsd:annotation>									<xsd:documentation>Qualifier corresponds to the short name of the  specified district.</xsd:documentation>								</xsd:annotation>							</xsd:element>						</xsd:choice>					</xsd:sequence>				</xsd:complexType>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="PlusbusZonesStructure">		<xsd:annotation>			<xsd:documentation>Collection of Plusbus Zones</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="PlusbusZone" type="PlusbusZoneStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>A PlusbusZone region covering a part of the UK.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="PlusbusZoneStructure">		<xsd:annotation>			<xsd:documentation>Plusbus fare Zone.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="PlusbusZoneCode" type="PlusbusZoneCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the Plusbus Zone.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">				<xsd:annotation>					<xsd:documentation>Name of the zone @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Country" type="CountryEnumeration">				<xsd:annotation>					<xsd:documentation>Country of zone. Enumerated value.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Mapping" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Boundary of the Plusbus zone</xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence>						<xsd:element name="Location" type="LocationStructure" minOccurs="3" maxOccurs="unbounded">							<xsd:annotation>								<xsd:documentation>Collection of points making a polygon defining zone.</xsd:documentation>							</xsd:annotation>						</xsd:element>					</xsd:sequence>				</xsd:complexType>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>	</xsd:complexType></xsd:schema>