<?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="LocationSensor.xsd"/>
  <xsd:include schemaLocation="BubbleGageInspection.xsd"/>
  <xsd:include schemaLocation="CrestStageGageInspection.xsd"/>
  <xsd:include schemaLocation="WireWeightGageInspection.xsd"/>
  <xsd:include schemaLocation="MaximumMinimumGageInspection.xsd"/>
  <xsd:include schemaLocation="SensorReading.xsd"/>
  <xsd:include schemaLocation="../shared/HistoryGroup.xsd"/>

  <xsd:element name="SensorInspection">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>The inspection of a hydrologic data sensor and making one or more hydrologic data readings from that sensor.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="LocationSensor" type="LocationSensor" minOccurs="0"/>
        <xsd:choice minOccurs="0">
          <xsd:element ref="BubbleGageInspection"/>
          <xsd:element ref="CrestStageGageInspection"/>
          <xsd:element ref="WireWeightGageInspection"/>
          <xsd:element ref="MaximumMinimumGageInspection"/>
        </xsd:choice>
        <xsd:element ref="SensorReading" minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="Comment" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Comments about the sensor inspection.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:group ref="HistoryGroup"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
