<?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/DataAgingCode.xsd"/>
        <xsd:include schemaLocation="../shared/HistoryGroup.xsd"/>
	<xsd:include schemaLocation="../shared/curve/LinearCurve.xsd"/>

	<xsd:element name="DataCorrection">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>An individual data correction instruction.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
                               <xsd:element name="SetNumber" type="xsd:integer">
          				<xsd:annotation>
            					<xsd:documentation>
              						<Definition>The data correction set number.</Definition>
            					</xsd:documentation>
          				</xsd:annotation>
        			</xsd:element>
                                <xsd:element name="StartDateTime" type="DateTimeWithDatum">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The starting date and time of the data correction.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EndDateTime" type="DateTimeWithDatum" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The ending date and time of the data correction.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
                                <xsd:element ref="DataAgingCode"/>
				<xsd:element name="Comment" type="xsd:string" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>Textual remarks about a data correction set.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
                                <xsd:group ref="HistoryGroup"/>
	                        <xsd:element ref="LinearCurve"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
