<?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="site/Site.xsd"/>
	<xsd:include schemaLocation="shared/IEEE754FloatValue.xsd"/>
	<xsd:include schemaLocation="shared/DateTimeWithDatum.xsd"/>
	<xsd:include schemaLocation="shared/DataAgingCode.xsd"/>
	<xsd:include schemaLocation="shared/string1.xsd"/>
	<xsd:include schemaLocation="shared/string16.xsd"/>
	<xsd:include schemaLocation="shared/Equipment.xsd"/>
	<xsd:include schemaLocation="sitevisit/FieldEquipment.xsd"/>
	<xsd:element name="UsgsHydroML">
		<xsd:annotation>
			<xsd:documentation source="http://water.usgs.gov/nwis_activities/xml/nwis_hml.html">
				<Definition>HYDROML is an XML format developed for the transport and archival of hydologic data HYDROML was originally developed by the National Water Information System (NWIS) office of the United States Geological Survey for the purposes of importing, exporting, and archiving hydrologic data from and to the NWIS data base. AquariusHYDROML is a modification of the original work to allow it to be used with the Aquarius software. AquariusHYDROML is a variation of HYDROML and not and extension. The types of hydrologic data include site information, computation instructions, corrections, ratings, shifts, time-series data including unit values and daily value statistics, peak flows, and site visit measurements. There are many differrent uses possible for HYDROML and not all data elements are used in every case. In fact many data elements will not be used depending upon the data content desired or the usage of the XML file.There are many different usage examples that are possible but the combinations are too numerous to list here. Please refer to the web site for example XML files.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Version" type="xsd:string"/>
				<xsd:element name="Source">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>Information describing the source of the data within this document and/or the device or software that has created this XML Document.</Definition>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:all>
							<xsd:element name="Equipment" type="Equipment" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The device that produced this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="SoftwareName" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The name of the software that produced this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="SoftwareVersionText" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The version of the software that produced this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="AgencyCode" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The agency supplying this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="DataBaseName" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The name of the data base containing this data in this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="DataBaseNumber" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The NWIS internal database number of the data base containing this data in this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="RemarksText" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>Comments about the source of this XML document.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<xsd:element name="EmailAddress" type="xsd:string" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>
										<Definition>The electronic-mail address of the person to receive notification of processing of this XML file.</Definition>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
						</xsd:all>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="UnitsFamily">
					<xsd:simpleType>
						<xsd:restriction base="xsd:NMTOKEN">
							<xsd:enumeration value="English"/>
							<xsd:enumeration value="Metric"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element ref="Site" minOccurs="0" maxOccurs="1"/>
				<xsd:element ref="FieldEquipment" minOccurs="0" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
