<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Guntars Peters (SIA RIX Technologies) -->
<xs:schema xmlns="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="CMISARI.xsd">
    <xs:annotation>
        <xs:appinfo>
            <ivis:Metadata xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0">
                <ivis:Creator Href="http://www.pmlp.gov.lv" CodeListID="Authority" CodeListAgencyID="100001" CodeListAgencyName="ĪUMEPLS" CodeListLanguageID="lv" CodeListCodeValue="100010">Pilsonības un Migrācijas Lietas Pārvalde</ivis:Creator>
                <ivis:Date>
                    <ivis:Created>2007-06-11</ivis:Created>
                    <ivis:Modified>2007-06-11</ivis:Modified>
                </ivis:Date>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-CMISARI-v1-0</ivis:Identifier>
                <ivis:Language>LV</ivis:Language>
                <ivis:Relation />
                <ivis:Status>
                    <ivis:Default>CANDIDATE</ivis:Default>
                    <ivis:Version>v1.0</ivis:Version>
                </ivis:Status>
                <ivis:Subject>
                    <ivis:Category CodeListID="XMLSchemaType" CodeListAgencyID="100001" CodeListAgencyName="ĪUMEPLS" CodeListLanguageID="lv" CodeListCodeValue="8">Lietojumu XML shēma</ivis:Category>
                    <ivis:Project>PopulationRegister</ivis:Project>
                </ivis:Subject>
                <ivis:Title>
                    <ivis:Default>CMIS ārējais interfeiss</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <!--Begin Cmis autorizācijas pieprasījums-->
    <xs:complexType name="AuthorizationRequestStructure">
        <xs:annotation>
            <xs:documentation>Sesijas autorizācijas pieprasījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="USERNAME" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Lietotājvārds</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PASSWORD" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Parole</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--End Cmis autorizācijas pieprasījums-->
    <!---->
    <!--Begin Autorizētas sesijas identifikators-->
    <xs:element name="CMISARISessionId" type="CMISARISessionIdType">
        <xs:annotation>
            <xs:documentation>Sesijas identifikators</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:simpleType name="CMISARISessionIdType">
        <xs:annotation>
            <xs:documentation>Sesijas identifikatora tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:pattern value="[A-Z0-9] {31}" />
        </xs:restriction>
    </xs:simpleType>
    <!--End Autorizētas sesijas identifikators-->
    <!---->
    <!--Begin Cmis Autorizēts pieprasījums-->
    <xs:complexType name="AuthorizedRequestStructure">
        <xs:annotation>
            <xs:documentation>Autorizēta pieprasījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SESSION_ID" type="CMISARISessionIdType">
                <xs:annotation>
                    <xs:documentation>Autorizētās sesijas identifikators (iegūst autorizējoties)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PACK" type="PackType">
                <xs:annotation>
                    <xs:documentation>Izgūstamā datu grupa vai veicamā operācija</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="FILTER" type="FilterStructure" />
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="PackType">
        <xs:annotation>
            <xs:documentation>Izgūstamās datu grupas tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString" />
    </xs:simpleType>
    <xs:complexType name="FilterStructure">
        <xs:annotation>
            <xs:documentation>Filtra struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CONDITION" type="ConditionStructure" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Nosacījumi</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ConditionStructure">
        <xs:annotation>
            <xs:documentation>Nosacījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:attribute name="NAME" type="xs:normalizedString">
            <xs:annotation>
                <xs:documentation>Nosaukums</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="VALUE" type="xs:normalizedString">
            <xs:annotation>
                <xs:documentation>Vērtība</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <!--End Cmis Autorizēts pieprasījums-->
    <!---->
    <xs:complexType name="AuthorizedOperationRequestStructure">
        <xs:annotation>
            <xs:documentation>Autorizēta operācijas pieprasījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SESSION_ID" type="CMISARISessionIdType">
                <xs:annotation>
                    <xs:documentation>Autorizētās sesijas identifikators (iegūst autorizējoties)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PACK" type="PackType">
                <xs:annotation>
                    <xs:documentation>Veicamā operācija</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="INPUT" type="InputStructure" />
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="InputStructure">
        <xs:annotation>
            <xs:documentation>Ieejošo parametru struktūra</xs:documentation>
        </xs:annotation>
        <xs:choice maxOccurs="unbounded">
            <xs:element name="PARAM" type="ParamStructure" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Parametrs</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="GROUP" type="ParamGroupStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Parameru grupa</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="ParamGroupStructure">
        <xs:annotation>
            <xs:documentation>Parametru grupas struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PARAM" type="ParamStructure" />
        </xs:sequence>
        <xs:attribute name="NAME">
            <xs:annotation>
                <xs:documentation>Vārds</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="ParamStructure">
        <xs:annotation>
            <xs:documentation>Parametra struktūra</xs:documentation>
        </xs:annotation>
        <xs:attribute name="NAME">
            <xs:annotation>
                <xs:documentation>Vārds</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="VALUE">
            <xs:annotation>
                <xs:documentation>Vērtība</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <!---->
    <!--Begin Cmis Response-->
    <xs:element name="RESPONSE" type="ResponseStructure">
        <xs:annotation>
            <xs:documentation>CMIS ARI atbilde</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="ResponseStructure">
        <xs:annotation>
            <xs:documentation>Atbildes struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="DATA" type="DataStructure">
                <xs:annotation>
                    <xs:documentation>Dati</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SYSTEM_MESSAGES" type="SystemMessageStructure" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Sistēmas paziņojumi</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DataStructure">
        <xs:annotation>
            <xs:documentation>Datu struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ENTITY" type="EntityStructure">
                <xs:annotation>
                    <xs:documentation>Entītija</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="EntityStructure">
        <xs:annotation>
            <xs:documentation>Entītijas struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence maxOccurs="unbounded">
            <xs:element name="ATTRIBUTE" type="AttributeStructure">
                <xs:annotation>
                    <xs:documentation>Atribūts</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="NAME" type="xs:normalizedString">
            <xs:annotation>
                <xs:documentation>Nosaukums</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="AttributeStructure">
        <xs:annotation>
            <xs:documentation>Atribūta struktūra</xs:documentation>
        </xs:annotation>
        <xs:attribute name="NAME" type="xs:normalizedString">
            <xs:annotation>
                <xs:documentation>Atribūta nosaukums</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="VALUE" type="xs:normalizedString">
            <xs:annotation>
                <xs:documentation>Atribūta vērtība</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SystemMessageStructure">
        <xs:annotation>
            <xs:documentation>Sistēmas paziņojumu struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ERROR" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Kļūdas paziņojums</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ERROR_CODE" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Kļūdas kods</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--End Cmis Response-->
</xs:schema>