<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema  
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/4.8" 
             
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            elementFormDefault="qualified" version="4.8">

  <xsd:include schemaLocation="CrossSectionSurveyStation.xsd"/>
  <xsd:include schemaLocation="CrossSectionSurveyComparison.xsd"/>
  <xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754UncertaintyFloatValue.xsd"/>

  <xsd:element name="WaterQualityCrossSectionSurvey">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>The survey of a stream cross-section related to a qw monitor.The survey of a stream cross-section related to a qw monitor.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
	<xsd:element name="SurveyMethodCode" type="xsd:NMTOKEN">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the method of surveying the stream cross-section.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
	<xsd:element name="StartingPointCode" type="xsd:NMTOKEN" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating whether the cross-section survey starts on the left or right bank.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
	<xsd:element name="RelativeLocationCode" type="xsd:NMTOKEN" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the location of the cross-section relative to the qw monitor.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
	<xsd:element name="StreamMixingCode" type="xsd:NMTOKEN" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the quality of the stream mixing.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SectionNumber" type="xsd:integer">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The number of verticals in the cross-section.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="StartDateTime" type="DateTimeWithDatum" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The starting date and time that of the survey.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="StartStreamStageMeasure"  type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The stream stage at the start of the cross-section survey. The default units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="EndDateTime" type="DateTimeWithDatum" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The ending date and time of the cross-section survey.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="EndStreamStageMeasure"  type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The stream stage at the end of the survey. The default units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="CrossSectionSurveyStation" minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element ref="CrossSectionSurveyComparison" minOccurs="0"/>
        <xsd:element name="Comment" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Comments about the cross-section survey.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
