<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://water.usgs.gov/XML/AQ" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://water.usgs.gov/XML/AQ" elementFormDefault="qualified" version="1.0">
	<xsd:element name="ListItem">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>One item of a reference list.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Code" type="xsd:NMTOKEN">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The code used as an identifier of the reference list item.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="Name" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The name of the reference list item.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="Description" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>A textual description of the reference list item.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="SortOrderNumber" type="xsd:positiveInteger">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The sorting order number.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ValidIndicator" type="xsd:boolean">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>Flag indicating if the list item is valid for selection.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

	<xsd:element name="List">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="ListItem" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

	<xsd:element name="ReferenceList">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>A list of valid codes for a data base attribute valid entry list. The reference list is used to validate the entry of data into the given attribute in the data base. The list also contains a sorting number and a valid flag which indicates if the code is currently selectable or it is just there for backward compatability.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="ListName" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The name of the reference list.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ListDescription" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>A description of the reference list.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ListAuthority" type="xsd:string">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The person or group responsible for approving the contents of the reference list.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="List"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
