<?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/WaterYear.xsd"/>
	<xsd:include schemaLocation="../shared/StatisticCode.xsd"/>
	<xsd:include schemaLocation="../shared/RecordHistory.xsd"/>
	<xsd:include schemaLocation="DailyValue.xsd"/>
	<xsd:include schemaLocation="DailyValueDataStream.xsd"/>
	<xsd:include schemaLocation="DailyValuesRemarks.xsd"/>
	<xsd:include schemaLocation="DailyValueStatistics.xsd"/>
	<xsd:include schemaLocation="encoding.xsd"/>

	<xsd:element name="DailyValueSet">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>Daily values are statistics derived from measured or computed time-series data, that are based on the local day of the site. That is daily values are statistics computed for the local day based upon the local midnight to midnight of the site.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="WaterYear" minOccurs="0"/>
				<xsd:element ref="StatisticCode"/>
				<xsd:choice>
					<xsd:element ref="DailyValue" maxOccurs="unbounded"/>
					<xsd:element ref="DailyValueDataStream"/>	
				</xsd:choice>
				<xsd:element name="Remarks" type="DailyValuesRemarks" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="DailyValueStatistics" minOccurs="0"/>
				<xsd:element name="History" type="RecordHistoryType" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute ref="encoding"/>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
