<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://www.deegree.org/datasource/feature/simplesql" elementFormDefault="qualified"
  xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb" jaxb:version="3.0">
  <annotation>
    <appinfo>
      <jaxb:schemaBindings>
        <jaxb:package name="org.deegree.feature.persistence.simplesql.jaxb" />
      </jaxb:schemaBindings>
    </appinfo>
  </annotation>
  <element name="SimpleSQLFeatureStore">
    <annotation>
      <documentation>SQL FeatureStore that is configured by an SQL statement/connection.</documentation>
      <appinfo>
        <jaxb:class name="SimpleSQLFeatureStoreConfig" />
      </appinfo>
    </annotation>
    <complexType>
      <sequence>
        <element name="StorageCRS" type="string" minOccurs="0" />
        <element name="FeatureTypeName" type="string" minOccurs="0" />
        <element name="FeatureTypeNamespace" type="string" minOccurs="0" />
        <element name="FeatureTypePrefix" type="string" minOccurs="0" />
        <choice>
          <element name="ConnectionPoolId" type="string" />
          <element name="JDBCConnId" type="string" />
        </choice>
        <element name="SQLStatement" type="string" />
        <element name="BBoxStatement" type="string" />
        <element name="LODStatement" minOccurs="0" maxOccurs="unbounded">
          <complexType>
            <simpleContent>
              <extension base="string">
                <attribute name="aboveScale" type="int" />
              </extension>
            </simpleContent>
          </complexType>
        </element>
      </sequence>
      <attribute name="configVersion" type="string" use="optional"/>
    </complexType>
  </element>

</schema>