<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema version="5.0" 
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0"
            
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            
            elementFormDefault="qualified">
   <xsd:include schemaLocation="HydrologicUnit.xsd"/>
   <xsd:include schemaLocation="../shared/RecordHistory.xsd"/>
   <xsd:complexType name="SurfaceWaterResourceType" abstract="false">
      <xsd:annotation>
         <xsd:documentation/>
      </xsd:annotation>
      <xsd:sequence>
         <xsd:element name="Code">
            <xsd:annotation>
               <xsd:documentation>
                  <Nwisdb>SURFACE_WATER.surface_water_cd</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
            <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                  <xsd:length value="2"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="HydrologicUnit" type="HydrologicUnitType" minOccurs="1" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <Definition>Hydrologic unit. Hydrologic unit. A hydrologic unit for which aggregate water-use data are stored.</Definition>
                  <Nwisdb>SURFACE_WATER.huc_cd</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element name="Name">
            <xsd:annotation>
               <xsd:documentation>
                  <Nwisdb>SURFACE_WATER.surface_water_nm</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
            <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                  <xsd:minLength value="1"/>
                  <xsd:maxLength value="64"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="RecordHistory" type="RecordHistoryType" minOccurs="1" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <Definition>Record history. The points at which a database record was created and last modified, and the user names of the creators and modifiers.</Definition>
                  <Nwisdb>SURFACE_WATER.surface_water_cn/SURFACE_WATER.surface_water_cr/SURFACE_WATER.surface_water_mn/SURFACE_WATER.surface_water_md</Nwisdb>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>
</xsd:schema>
