<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://water.usgs.gov/XML/AQ" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://water.usgs.gov/XML/AQ" elementFormDefault="qualified" version="1.0">
	<xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
	<xsd:include schemaLocation="../shared/DataAgingCode.xsd"/>
        <xsd:include schemaLocation="../shared/HistoryGroup.xsd"/>

	<xsd:element name="RatingDate">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>A period of time, defined by a starting date and time and an ending date and time, where the rating is in effect. </Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="StartDateTime" type="DateTimeWithDatum">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The starting date and time that the rating is in effect.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EndDateTime" type="DateTimeWithDatum">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The ending date and time the rating is in effect.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="DataAgingCode"/>
				<xsd:element name="RemarksText" type="xsd:string" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>Textual remarks about the rating period.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
                                <xsd:group ref="HistoryGroup"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
