<?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="DataAgingCode.xsd"/>
	<xsd:include schemaLocation="DateTimeWithDatum.xsd"/>
	<xsd:element name="DataAgingList">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>A list of data aging periods.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="DataAging" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="DataAging">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>One data aging period with data aging status.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="StartDate" type="xsd:date">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The starting date of the data aging period.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EndDate" type="xsd:date">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The ending date of the data aging period.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="StartDateTime" type="DateTimeWithDatum" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The starting date and time of the data aging period.  This is the date and time of the beginning of day midnight for the StartDate of the data aging period.  Provided as a convenience when determining if an element with a DateTime is within the data aging period.</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 aging period.    This is one second before the date and time of the end of day midnight for the EndDate of the data aging period.  Provided as a convenience when determining if an element with a DateTime is within the data aging period.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="DataAgingCode"/>
				<xsd:element name="ReviewUserText" type="xsd:string" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The user login identifier of the person that reviewed the data aging period.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ReviewDateTime" type="DateTimeWithDatum" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The date and time that the data aging period was reviewed.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ApproveUserText" type="xsd:string" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The user login identifier of the person that approved the data aging period.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ApproveDateTime" type="DateTimeWithDatum" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The date and time that the data aging period was approved.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
