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

        <xsd:include schemaLocation="./shared/DateTimeWithDatum.xsd"/>
    
  <xsd:element name="ProcessingOptions">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>Defines the processing options for parings, processing, and saving of data from the HydroML source into the NWEIS database.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="OverwriteIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if the entire data set is to be overwritten.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="HistoryOverwriteIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if the history (create user, create date, modify user, and modify date) data set is to be overwritten by data from the HydroML source.</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 of the data period being processed.</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 data period being processed.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
       <xsd:element name="SiteVisitIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if site visit data is to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="LocationIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if location data is to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
       <xsd:element name="DataDescriptorIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if data descriptor data is to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ComputationInstructionsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if computation instructions are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
       <xsd:element name="ThresholdsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if testing thresholds are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="EstimationEquationsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if estimation equations are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      <xsd:element name="CorrectionsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if data corrections are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="RatingIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if ratings are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      <xsd:element name="DataAgingIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if data aging data is to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DailyValuesIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if daily values are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      <xsd:element name="UnitValuesIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if unit values are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SummaryStatisticsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Indicates if summary statistics are to be processed (true) or ignored (false).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
