<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v5.4 U (http://www.xmlspy.com) by Gil Ross Met Office UK -->
<xs:schema targetNamespace="http://www.wmo.ch/web/www/metadata"
 xmlns:xs="http://www.w3.org/2001/XMLSchema" 
 xmlns:xi="http://www.w3.org/2003/XInclude" 
 xmlns="http://www.wmo.ch/web/www/metadata" 
 elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.2">
	<xs:annotation>
		<xs:documentation> 
		Schema for the WMO Community Core Metadata Profile. Based on XML Schema and ISO 19115
		This is the root schema for WMO19115 Core Profile.
		The hierarchy of schemas is an implementation of B.2 Metadata package dictionaries
		This schema implements B.2.1 Metadata entity set information
		Version 0.2
		Defined by Expert Team on Integrated Data Management 
		Second Meeting 13-16 May 2002 Shinfield England
		Third Meeting 15-18 December 2003 Geneva
		Fourth Meeting 1-3 September 2004 Geneva 
		</xs:documentation>
	</xs:annotation>
	<!-- Include code lists  -->
	<xs:include schemaLocation="./WMO19115_CodeLists_v0_2.xsd"/>
	<!-- Include basic types  -->
	<xs:include schemaLocation="./WMO19115_basicTypes_v0_2.xsd"/>
	<!-- Include MD_DataIdentification Classes  -->
	<xs:include schemaLocation="./WMO19115_MD_DataIdentification_v0_2.xsd"/>
	<!-- Include MD_ContentInformation Classes  -->
	<xs:include schemaLocation="./WMO19115_MD_ContentInformation_v0_2.xsd"/>
	<!-- Include CI_Citation Classes  -->
	<xs:include schemaLocation="./WMO19115_CI_Citation_v0_2.xsd"/>
	<!-- Include MD_Constraints Class  -->
	<xs:include schemaLocation="./WMO19115_MD_Constraints_v0_2.xsd"/>
	<!-- Include MD_ReferenceSystem Class  -->
	<xs:include schemaLocation="./WMO19115_MD_ReferenceSystem_v0_2.xsd"/>
	<!-- Include MD_Maintenance Class  -->
	<xs:include schemaLocation="./WMO19115_MD_Maintenance_v0_2.xsd"/>
	<!-- Include EX_Extent Class  -->
	<xs:include schemaLocation="./WMO19115_EX_Extent_v0_2.xsd"/>
	<!-- Include DQ_DataQuality Class  -->
	<xs:include schemaLocation="./WMO19115_DQ_DataQuality_v0_2.xsd"/>
	<!-- Include MD_Distribution Class  -->
	<xs:include schemaLocation="./WMO19115_MD_Distribution_v0_2.xsd"/>
	<!-- Import XInclude schema-->
	<xs:import namespace="http://www.w3.org/2003/XInclude" schemaLocation="XInclude.xsd"/>
	<xs:element name="metaData" type="MD_MetadataType"/>
	<xs:complexType name="MD_MetadataType">
		<xs:annotation>
			<xs:documentation>Lines 2-22</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="metadataFileIdentifier" minOccurs="0"/>
			<xs:element ref="metadataLanguage"/>
			<xs:element ref="metadataCharacterSet" minOccurs="0"/>
			<xs:element ref="metadataContact" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="metadataDateStamp"/>
			<xs:element ref="metadataStandardName" minOccurs="0"/>
			<xs:element ref="metadataStandardVersion" minOccurs="0"/>
			<xs:element ref="referenceSystemInfo" minOccurs="0"/>
			<xs:element ref="identificationInfo" maxOccurs="unbounded"/>
			<xs:element ref="contentInfo" minOccurs="0"/>
			<xs:element ref="distributionInfo" minOccurs="0"/>
			<xs:element ref="dataQualityInfo" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="parentIdentifier" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="hierarchyLevel" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="hierarchyLevelName" minOccurs="0" maxOccurs="unbounded"/>
			<!-- elements added in ET-IDM-4 to allow hierarchy identification -->
		</xs:sequence>
	</xs:complexType>
	<!-- ********************************************************************************************************************* -->
	<!-- reference elements ______________________________________________________________ -->
	<!-- ********************************************************************************************************************* -->
	<xs:element name="metadataFileIdentifier" type="xs:string">
		<xs:annotation>
			<xs:documentation>2: Metadata file identifier</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="metadataLanguage" type="xs:language" default="en">
		<xs:annotation>
			<xs:documentation>3: Language of metadata code</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="metadataCharacterSet" type="MD_CharacterSetCodeType">
		<xs:annotation>
			<xs:documentation>4: Character coding standard of metadata set</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="metadataContact" type="CI_ResponsiblePartyType">
		<xs:annotation>
			<xs:documentation>8: party responsible for the metadata</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="metadataDateStamp" type="xs:date">
		<xs:annotation>
			<xs:documentation>9: Metadata creation date</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="metadataStandardName" type="xs:string">
		<xs:annotation>
			<xs:documentation>10: name of metadata standard</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="metadataStandardVersion" type="xs:string">
		<xs:annotation>
			<xs:documentation>11: version of metadata standard</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="referenceSystemInfo" type="MD_ReferenceSystemType">
		<xs:annotation>
			<xs:documentation>13: descriptions of the spatial and temporal reference systems used in the dataset</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="identificationInfo" type="MD_DataIdentificationType">
		<xs:annotation>
			<xs:documentation>15: basic information about the data</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="contentInfo" type="MD_ContentInformationType">
		<xs:annotation>
			<xs:documentation>16: information about the feature catalogue, coverage and image characteristics</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="distributionInfo" type="MD_DistributionType">
		<xs:annotation>
			<xs:documentation>17: information about the distribution</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="dataQualityInfo" type="DQ_DataQualityType">
		<xs:annotation>
			<xs:documentation>18: information about the data quality</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="parentIdentifier" type="xs:string">
		<xs:annotation>
			<xs:documentation>added in ET-IDM-4 to allow traversing a hierarchy of metadata</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="hierarchyLevel" type="MD_ScopeCodeType">
		<xs:annotation>
			<xs:documentation>added in ET-IDM-4 to allow traversing a hierarchy of metadata</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="hierarchyLevelName" type="xs:string">
		<xs:annotation>
			<xs:documentation>added in ET-IDM-4 to allow traversing a hierarchy of metadata</xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>

