<?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="./site/SiteIdentifier.xsd"/>
        <xsd:include schemaLocation="./shared/DateTimeWithDatum.xsd"/>
    
  <xsd:element name="Site">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>Site identification Information describing the agency code and site number of the site.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="SiteIdentifier" type="SiteIdentifierType"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="SiteVisitExportInstructions">
    <xsd:annotation>
      <xsd:documentation source="http://water.usgs.gov/nwis_activities/xml/nwis_hml.html">
        <Definition>SiteVisitExportInstructions is an XML format developed for providing instructions to export site visits from an National Water Information System (NWIS) database.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="NwisDatabaseServer" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The description of the boat and moter used in the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="NwisDatabaseName" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The description of the boat and moter used in the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="NwisDatabaseNumber" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The description of the boat and moter used in the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DestinationFilePath" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The description of the boat and moter used in the measurement.</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 site visit date/time search/retrieval range.</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 site visit date/time search/retrieval range.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="Site" minOccurs="0"  maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
