<?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="UnitValuesTransportCode.xsd"/>
	
<xsd:element name="UnitValueInventory">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>This is a summary of unit values that exist for a site and data descriptor.  This summary shows the Data Descriptor number, the unit value data type, the transport code, the begining date of record, the ending date of record, and the number of unit values.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
			  	<xsd:element name="DataDescriptorNumber" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The Data descriptor sequence number.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="UnitValuesCode" 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:element name="BeginDate" type="xsd:date">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The date of the first unit value.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EndDate" type="xsd:date">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The date of the last unit value.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
	                        <xsd:element name="UnitValueNumber" type="xsd:integer">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The number of unit values in the record.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
