<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema version="5.0"  
	xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0" 
	 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	
	elementFormDefault="qualified">

	<xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
        <xsd:include schemaLocation="../shared/RecordHistory.xsd"/>
	<xsd:include schemaLocation="UnitValue.xsd"/>
	<xsd:include schemaLocation="UnitValueDataStream.xsd"/>
	<xsd:include schemaLocation="UnitValuesTransportCode.xsd"/>
	<xsd:include schemaLocation="UnitValuesRemarks.xsd"/>
	
<xsd:element name="UnitValueSet">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>Unit values are are a time-series of values that are usually with a interval of time less than one day. The interval between unit values can be an equal time interval or an unequal time interval.  Unit values always have a date and time associated with each unit value.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="UnitValueCode" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>A code indicating the type of unit values. The valid codes are meas = Measured,edit = Edited, corr = corrections, shift = Shifts, and da = data analysis.</Definition>>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="TransportCode" type="UnitValuesTransportCode" minOccurs="0"/>
				<xsd:choice>
					<xsd:element ref="UnitValue" maxOccurs="unbounded"/>
					<xsd:element ref="UnitValueDataStream"/>
				</xsd:choice>
				<xsd:element name="Remarks" type="UnitValuesRemarks" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element name="History" type="RecordHistoryType" minOccurs="0"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
