<?xml version="1.0" encoding="UTF-8"?><!-- 2005 02 20         Correction to 2.0  RegionRef, AdministrativeAreas       V2.1  2005 09 05             Change to ref NaPT stop 2.1 (Make Landmark and street optional)      V2.1  2005 12 01 			Add  Trunk Locality   -->				<!-- 2007 08 25  		 Add modification archived  status - change referenced package using NaPT_common* - --><!-- (c) Crown Copyright 2000-2007   --><xsd:schema xmlns="http://www.naptan.org.uk/" xmlns:napt="http://www.naptan.org.uk/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.naptan.org.uk/" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.2" id="NPTG_Discovery">	<xsd:annotation>		<xsd:appinfo>			<Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">				<Aggregation>main schema</Aggregation>				<Audience>e-service developers</Audience>				<Contributor>Roger Slevin [Roger.Slevin@dft.gsi.gov.uk]</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-07-07</Created>				</Date>				<Date>					<Modified>2004-11-04</Modified>				</Date>				<Date>					<Modified>2004-07-11</Modified>				</Date>				<Date>					<Modified>2004-08-26</Modified>				</Date>				<Date>					<Modified>2005-09-05</Modified>				</Date>				<Date>					<Modified>2005-11-05</Modified>				</Date>				<Date>					<Modified>2005-30-01</Modified>				</Date>								<Date>					<Modified>2007-08-29</Modified>				</Date>				<Description>					<p>The NPTG Discovery Schema is a subschema of the National Public Transport Gazetteer, a UK nationwide system for identifying towns and settlement that are accessed by  Public Transport. It is used  to associate web services that can be used to access the data with NPTG entities.</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.2}NPTG_discovery.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.2/napt/NAPT_stop-v2-2.xsd</Requires>				</Relation>				<Rights>Unclassified                            <Copyright>Crown Copyright 2000-2007</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 NPTG Discovery Schema for exchanging data about web services associated with UK National Public Transport Gazetteer entities. </Title>				<Type>Standard</Type>			</Metadata>		</xsd:appinfo>	</xsd:annotation>	<!-- ===NPTG DIscovery=============================================================== -->	<xsd:include schemaLocation="napt/NaPT_stop-v2-2.xsd"/>	<xsd:element name="NptgDiscovery">		<xsd:annotation>			<xsd:documentation>Schema for exchanging NPTG Discovery data.@xml:lang@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status,@FileName,@SchemaVersion,@LocationSystem</xsd:documentation>		</xsd:annotation>		<xsd:complexType>			<xsd:sequence>				<xsd:element name="CallCentres" type="CallCentresStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Call centres covering the region.</xsd:documentation>					</xsd:annotation>				</xsd:element>				<xsd:element name="WebApplications" type="WebApplicationsStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Definitions of web services.</xsd:documentation>					</xsd:annotation>				</xsd:element>				<xsd:element name="TrustedServers" type="TrustedServerRefsStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Definitions of access points to services.</xsd:documentation>					</xsd:annotation>				</xsd:element>				<xsd:element name="AdjacentRegions" type="AdjacentRegionsStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Definitions of area exchanges.</xsd:documentation>					</xsd:annotation>				</xsd:element>				<xsd:element name="TrunkLocalities" type="TrunkLocalitiesStructure" minOccurs="0">					<xsd:annotation>						<xsd:documentation>Defintions of Trunk Localities.</xsd:documentation>					</xsd:annotation>				</xsd:element>			</xsd:sequence>			<xsd:attributeGroup ref="DocumentModificationDetailsGroup"/>			<xsd:attribute name="SchemaVersion" type="xsd:NMTOKEN" use="required" fixed="2.2"/>			<xsd:attribute name="LocationSystem" type="LocationSystemEnumeration" use="optional" fixed="Grid"/>		</xsd:complexType>		<xsd:unique name="CallCentreKey">			<xsd:selector xpath=".//napt:CallCentres/napt:CallCentre"/>			<xsd:field xpath="CallCentreCode"/>		</xsd:unique>	</xsd:element>	<!--======================================================================= -->	<xsd:complexType name="CallCentreStructure">		<xsd:annotation>			<xsd:documentation>Type for Call centre.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="CallCentreCode" type="CallCentreCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the call centre.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Name" type="NaturalLanguageStringStructure">				<xsd:annotation>					<xsd:documentation>Name of the call centre. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="RegionRef" type="RegionRefStructure">				<xsd:annotation>					<xsd:documentation>Region for Call Centre.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AdministrativeAreas" type="AdministrativeAreaRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Administrative Areas that Call Centre Covers</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Availability" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Hours when call centre is open.</xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence>						<xsd:element name="Open" minOccurs="0" maxOccurs="unbounded">							<xsd:annotation>								<xsd:documentation>Structured representation of opening hours as one or more day types and hours. </xsd:documentation>							</xsd:annotation>							<xsd:complexType>								<xsd:complexContent>									<xsd:extension base="napt:DayAndTimeAvailabilityStructure">										<xsd:attributeGroup ref="ModificationDetailsGroup"/>									</xsd:extension>								</xsd:complexContent>							</xsd:complexType>						</xsd:element>						<xsd:element name="Note" type="napt:NaturalLanguageStringStructure">							<xsd:annotation>								<xsd:documentation>Description of opening hours. @lang.</xsd:documentation>							</xsd:annotation>						</xsd:element>					</xsd:sequence>				</xsd:complexType>			</xsd:element>			<xsd:element name="PublicTelephone" type="TelephoneContactStructure">				<xsd:annotation>					<xsd:documentation>Public Contact telephone number for the call centre.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="DirectTelephone" type="TelephoneContactStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Internal use contact telephone number for the call centre.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ContactEmail" type="EmailAddressType" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Contact email. Should be a general address rather than an individual. </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Notes" type="napt:NaturalLanguageStringStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Notes on call centre use. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="ModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="CallCentresStructure">		<xsd:annotation>			<xsd:documentation>Type for Collection of call centres.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="CallCentre" type="CallCentreStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>Call centre providing travel information for the region.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="WebApplicationsStructure">		<xsd:annotation>			<xsd:documentation>Type for Collection of web applications.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="WebApplication" type="WebApplicationStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>An information application.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="WebApplicationStructure">		<xsd:annotation>			<xsd:documentation>Type for web application.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="WebApplicationCode" type="WebApplicationCodeType">				<xsd:annotation>					<xsd:documentation>Identifier of the application.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="WebApplicationClassification" type="napt:WebApplicationClassificationEnumeration">				<xsd:annotation>					<xsd:documentation>Type of the application.JW, TXC, other</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="CapabilityClassification" type="xsd:NMTOKEN" minOccurs="0" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>List of capabilities of the application.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Description" type="PopulatedStringType" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Description of application.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Staging" type="StagingEnumeration">				<xsd:annotation>					<xsd:documentation>Whether application.is for  demo, test, or production. Enumeration</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Url" type="xsd:anyURI" minOccurs="0">				<xsd:annotation>					<xsd:documentation>URL with which to access of the application.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Version" type="xsd:string">				<xsd:annotation>					<xsd:documentation>Version number.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="UsedBy" type="UsedByStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>The NPTG and NaPTAN entities that use the application.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="ModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="WebApplicationRefStructure">		<xsd:annotation>			<xsd:documentation>Type for a reference to a Web service. The reference is by WebApplication Code.</xsd:documentation>		</xsd:annotation>		<xsd:simpleContent>			<xsd:extension base="WebApplicationCodeType"/>		</xsd:simpleContent>	</xsd:complexType>	<xsd:complexType name="WebApplicationRefsStructure">		<xsd:annotation>			<xsd:documentation>Type for Collection of references to web services.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="WebApplicationRef" type="WebApplicationRefStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>A web service able to provide an travel information service about the region.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TrustedServerRefsStructure">		<xsd:annotation>			<xsd:documentation>Type for Collection of references to trusted servers.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="TrustedServer" type="TrustedServerStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>A web service able to provide an travel information service about the region.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TrustedServerStructure">		<xsd:annotation>			<xsd:documentation>Type for trusted server.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="ServerCode" type="WebApplicationCodeType">				<xsd:annotation>					<xsd:documentation>Identifier of the server</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="IpAddressRange">				<xsd:annotation>					<xsd:documentation>Range of Accessible IP addresses on the server.</xsd:documentation>				</xsd:annotation>				<xsd:complexType>					<xsd:sequence>						<xsd:element name="FirstIp" type="IpAddressType">							<xsd:annotation>								<xsd:documentation>First IP address in range.</xsd:documentation>							</xsd:annotation>						</xsd:element>						<xsd:element name="LastIp" type="IpAddressType" minOccurs="0">							<xsd:annotation>								<xsd:documentation>Last IP address in range.</xsd:documentation>							</xsd:annotation>						</xsd:element>					</xsd:sequence>				</xsd:complexType>			</xsd:element>			<xsd:element name="Description" type="PopulatedStringType"/>		</xsd:sequence>		<xsd:attributeGroup ref="ModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="AdjacentRegionsStructure">		<xsd:annotation>			<xsd:documentation>Type for Collection of area exchanges.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="AdjacentRegion" type="AdjacentRegionStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>An area exchange indicates NaPTAN point that is shared by a pair of regions for journey planning computations. @CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="AdjacentRegionStructure">		<xsd:annotation>			<xsd:documentation>Type for Area Exchange.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="StopPointRef" type="AtcoCodeType">				<xsd:annotation>					<xsd:documentation>Reference to a NaPTAN stop.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="FromRegionRef" type="RegionRefStructure">				<xsd:annotation>					<xsd:documentation>Identifier of region that shares point with to region.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ToRegionRef" type="RegionRefStructure">				<xsd:annotation>					<xsd:documentation>Identifier of Region that shares point with from region. </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Location" type="napt:LocationStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Spatial location of point.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="ModificationDetailsGroup"/>	</xsd:complexType>	<xsd:complexType name="UsedByStructure">		<xsd:annotation>			<xsd:documentation>Type for uses of web services by </xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="RegionRefs" type="napt:RegionRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>References to regions that use the application.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="AdministrativeAreaRefs" type="napt:AdministrativeAreaRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>References to admin areas that use application, if different from region.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NptgLocalityRefs" type="napt:NptgLocalityRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>References to NptgLocality instances that use the application, if different from admin area.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="StopPointRefs" type="StopPointRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>References to NaPTAN stop points that use the application, if different from locality.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<!-- =====TRUNK LOCALITY================================================================== -->	<xsd:simpleType name="TrunkLocalityCodeType">		<xsd:annotation>			<xsd:documentation>Type for Unique Identifier of Trunk Locality.</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:NMTOKEN"/>	</xsd:simpleType>	<xsd:complexType name="TrunkLocalityRefStructure">		<xsd:annotation>			<xsd:documentation>Type for a reference to a TrunkLocality. The reference is byTrunkLocalityCode.  </xsd:documentation>		</xsd:annotation>		<xsd:simpleContent>			<xsd:extension base="TrunkLocalityCodeType"/>		</xsd:simpleContent>	</xsd:complexType>	<xsd:complexType name="TrunkLocalityVersionedRefStructure">		<xsd:annotation>			<xsd:documentation>Type for a reference to a TrunkLocality. The reference is by TrunkLocalityCode.  </xsd:documentation>		</xsd:annotation>		<xsd:simpleContent>			<xsd:extension base="TrunkLocalityCodeType"/>		</xsd:simpleContent>	</xsd:complexType>	<xsd:complexType name="TrunkLocalityRefsStructure">		<xsd:annotation>			<xsd:documentation>A collection of one or more references to Trunk Localities</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="PlusbusZoneRef" type="PlusbusZoneVersionedRefStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>Reference to the identifier of an Plusbus Zone.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TrunkLocalitiesStructure">		<xsd:annotation>			<xsd:documentation>Type for Collection of call centres.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="TrunkLocality" type="TrunkLocalityStructure" maxOccurs="unbounded">				<xsd:annotation>					<xsd:documentation>Trunk locality providing grouping of main interchange stops for a locality, for example, 'London Any', or 'London Rai Anyl'.@CreationDateTime,@ModificationDateTime,@Modification,@RevisionNumber,@Status.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TrunkLocalityStructure">		<xsd:annotation>			<xsd:documentation>Groupings of Trunk Locality.</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="TrunkLocalityCode" type="TrunkLocalityCodeType">				<xsd:annotation>					<xsd:documentation>Unique identifier of the trunk zone. The code of the Primary NptgLocality may be used.     </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Name" type="NaturalLanguageStringStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Name of the TrunkLocality, if different from that of Primary NptgLocality associated with TrunkLocality. @lang.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Location" type="napt:LocationStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Spatial location of center of locality point to show on map, if different from that of associated NptgLocality.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NptgLocalityRef" type="NptgLocalityRefStructure">				<xsd:annotation>					<xsd:documentation>Reference to the primary NptgLocality instance associated with the TrunkLocality. </xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="StopPointRefs" type="StopPointRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>References to one or more NaPTAN stop points that are in the TrunkLocality. Normally there will be at least one.</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="StopAreas" type="StopAreaRefsStructure" minOccurs="0">				<xsd:annotation>					<xsd:documentation>References to one or more NaPTAN stop areas that are in the TrunkLocality.  Used to include CCH references.</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>		<xsd:attributeGroup ref="ModificationDetailsGroup"/>	</xsd:complexType>	<!-- ======================================================================= -->	<!-- Types - should go into a types schema -->	<xsd:simpleType name="WebApplicationCodeType">		<xsd:annotation>			<xsd:documentation>Type for Unique Identifier of Web Service.</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:NMTOKEN"/>	</xsd:simpleType>	<xsd:simpleType name="WebApplicationClassificationEnumeration">		<xsd:annotation>			<xsd:documentation>Allowed WebApplication types.</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:NMTOKEN">			<xsd:enumeration value="JourneyWeb"/>			<xsd:enumeration value="Other"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="StagingEnumeration">		<xsd:annotation>			<xsd:documentation>Allowed Staging types.</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:NMTOKEN">			<xsd:enumeration value="Demo"/>			<xsd:enumeration value="Test"/>			<xsd:enumeration value="Production"/>		</xsd:restriction>	</xsd:simpleType></xsd:schema>
