<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:complexType name="BODYType">
        <xs:sequence>
            <xs:element type="CONFIGURATIONType" name="CONFIGURATION"/>
            <xs:element type="STATUSType" name="STATUS"/>
            <xs:element ref="SECURITY_PARAMETERS"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="CONFIGURATIONType">
        <xs:all>
            <xs:element ref="METADATA_FORMAT"/>
            <xs:element ref="METADATA_FORMAT_INTERPRETATION"/>
            <xs:element ref="METADATA_FORMAT_LAYOUT"/>
            <xs:element ref="BACKEND"/>
            <xs:element ref="INDEX_SIZE"/>
            <xs:element ref="INDEX_STALE"/>
        </xs:all>
    </xs:complexType>
    <xs:complexType name="DATE_OF_CREATIONType">
        <xs:attribute name="value" use="required" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="BACKENDType">        
        <xs:simpleContent>
            <xs:extension base="xs:string">
                <xs:attribute type="xs:string" use="required" name="ID"/> 
            </xs:extension>            
        </xs:simpleContent>        
    </xs:complexType>
    <xs:complexType name="HEADERType">
        <xs:all>
            <xs:element type="RESOURCE_IDENTIFIERType" name="RESOURCE_IDENTIFIER"/>
            <xs:element name="RESOURCE_TYPE" type="RESOURCE_TYPEType"/>
            <xs:element type="RESOURCE_KINDType" name="RESOURCE_KIND"/>
            <xs:element type="RESOURCE_URIType" name="RESOURCE_URI"/>
            <xs:element type="DATE_OF_CREATIONType" name="DATE_OF_CREATION"/>
        </xs:all>
    </xs:complexType>
    <xs:complexType name="RESOURCE_IDENTIFIERType">
        <xs:attribute use="required" type="xs:string" name="value"/>
    </xs:complexType>
    <xs:complexType name="RESOURCE_KINDType">
        <xs:attribute name="value" use="required">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="IndexDSResources"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
    <xs:element name="RESOURCE_PROFILE">
        <xs:complexType>
            <xs:sequence>
                <xs:element type="HEADERType" name="HEADER"/>
                <xs:element type="BODYType" name="BODY"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:complexType name="RESOURCE_TYPEType">
        <xs:attribute use="required" name="value">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="IndexDSResourceType"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="RESOURCE_URIType">
        <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:element name="SECURITY_PARAMETERS" type="xs:string"/>
    <xs:complexType name="STATUSType">
        <xs:all>
            <xs:element ref="INDEX_LAST_UPDATE"/>
        </xs:all>
    </xs:complexType>
    <xs:element name="INDEX_SIZE" type="xs:int"/>
    <xs:element name="INDEX_STALE" type="xs:boolean"/>
    <xs:element type="xs:string" name="METADATA_FORMAT"/>
    <xs:element type="xs:string" name="METADATA_FORMAT_INTERPRETATION"/>
    <xs:element type="xs:string" name="METADATA_FORMAT_LAYOUT"/>
    <xs:element type="BACKENDType" name="BACKEND"/>
    <xs:element type="xs:string" name="INDEX_LAST_UPDATE"/>
</xs:schema>
