<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:au="urn:x-inspire:specification:gmlas:AdministrativeUnits:3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gn="urn:x-inspire:specification:gmlas:GeographicalNames:3.0" xmlns:names="http://namespaces.os.uk/open/names/1.0/" targetNamespace="http://namespaces.os.uk/open/names/1.0/" elementFormDefault="qualified" version="1.0.0">
	<import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
	<import namespace="urn:x-inspire:specification:gmlas:AdministrativeUnits:3.0" schemaLocation="http://inspire.ec.europa.eu/schemas/au/3.0/AdministrativeUnits.xsd"/>
	<import namespace="urn:x-inspire:specification:gmlas:GeographicalNames:3.0" schemaLocation="http://inspire.ec.europa.eu/schemas/gn/3.0/GeographicalNames.xsd"/>
	<!--XML Schema document created by ShapeChange - http://shapechange.net/-->
	<element name="NamedPlace" type="names:NamedPlaceType" substitutionGroup="gn:NamedPlace">
		<annotation>
			<documentation>OS Open Names aims to provide a location, a classification and, where appropriate, a relationship between named places.</documentation>
		</annotation>
	</element>
	<complexType name="NamedPlaceType">
		<complexContent>
			<extension base="gn:NamedPlaceType">
				<sequence>
					<element name="inPostcodeDistrict" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<documentation>For roads only. Take the postcode district from the Code-Point nearest to the midpoint geometry created for the road. 
e.g. SO16.</documentation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">null:PostcodeDistrict</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="inPopulatedPlace" type="gml:ReferenceType" minOccurs="0" maxOccurs="unbounded">
						<annotation>
							<documentation>The name of the City that the road or postcode lies within. Where the City has more than one name, the name is concatenated with a space and a forward slash</documentation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">names:NamedPlace</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="inDistrict" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">au:AdministrativeUnit</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="inCounty" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">au:AdministrativeUnit</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="inEuropeanRegion" type="gml:ReferenceType">
						<annotation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">au:AdministrativeUnit</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="inCountry" type="gml:ReferenceType">
						<annotation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">au:AdministrativeUnit</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="sameAsDBPedia" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">null:Any</targetElement>
							</appinfo>
						</annotation>
					</element>
					<element name="sameAsGeoNames" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<appinfo>
								<targetElement xmlns="http://www.opengis.net/gml/3.2">null:Any</targetElement>
							</appinfo>
						</annotation>
					</element>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<complexType name="NamedPlacePropertyType">
		<sequence minOccurs="0">
			<element ref="names:NamedPlace"/>
		</sequence>
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
	</complexType>
</schema>
