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

  <xsd:include schemaLocation="VolumetricReading.xsd"/>
  <xsd:include schemaLocation="../shared/ReferenceListCodeType.xsd"/>

  <xsd:element name="VolumetricDischargeMeasurement">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A type of discharge measurement where the discharge is measured by the change in volume of water in a container over a given time duration. Typically this is done up to tem times and the results are averaged together to ger the streamflow (discharge).</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="ContainerUnitCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the units of the container used to measure the flow.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DischargeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average discharge for the measurement, as calculated from the individual volumetric readings.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="VolumetricReading" minOccurs="0" maxOccurs="10"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
