<?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:addr="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-0" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:epcs="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="VillageSearch.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-07-11</ivis:Created>
                    <ivis:Modified>2007-07-11</ivis:Modified>
                </ivis:Date>
                <ivis:Description>
                    <ivis:Default>Shēmas ciemu saraksta izgūšanai</ivis:Default>
                </ivis:Description>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-VillageSearch-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="1">Infrastruktūras XML shēma</ivis:Category>
                    <ivis:Project>PopulationRegister</ivis:Project>
                </ivis:Subject>
                <ivis:Title>
                    <ivis:Default>Shēmas ciemu saraksta izgūšanai</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <xs:annotation>
        <xs:documentation xml:lang="lv">Shēmas ciemu saraksta izgūšanai</xs:documentation>
    </xs:annotation>
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-0/20070328_121003/LivingPlaceLVA.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0/EServiceInstance.xsd" />
    <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/CMISARI.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0/IVISResponse.xsd" />
    <!--Pieprasījums-->
    <xs:complexType name="VillageParametersStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta parametru struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ATUCodeLevel2" type="addr:ATUCodeType">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">ATVK 2. līmeņa teritoriālās vienības kods</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ATUCodeLevel3" type="addr:ATUCodeType">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">ATVK 3. līmeņa teritoriālās vienības kods</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ATUCodeLevel4" type="addr:ATUCodeType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">ATVK 4. līmeņa teritoriālās vienības kods</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="VillageName" type="addr:ATUNameType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Ciema nosaukums vai nosaukuma sākuma daļa</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="VillageParameters" type="VillageParametersStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta parametri</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="VillageRequestStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta pieprasījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Pieprasījuma sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="VillageParameters" type="VillageParametersStructure">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Ciemu saraksta parametri</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EServiceInstance" type="epcs:EServiceInstanceStructure">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">ePakalpojuma instance</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="VillageRequest" type="VillageRequestStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta pieprasījums</xs:documentation>
        </xs:annotation>
    </xs:element>
    <!--Rezultāts-->
    <xs:complexType name="VillageStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciema datu struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Name" type="addr:ATUNameType">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Ciema nosaukums</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Code" type="addr:VillageCodeType">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Ciema PMLP kods</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="VillageListStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta struktūrs</xs:documentation>
        </xs:annotation>
        <xs:sequence maxOccurs="unbounded">
            <xs:element name="Village" type="VillageStructure">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Ciemu saraksts</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="VillageList" type="VillageListStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksts</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="VillageResponseStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta pieprasījuma rezultāta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:element name="Error" type="ivis:ErrorStructure" />
                <xs:element name="VillageList" type="VillageListStructure" />
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="VillageResponse" type="VillageResponseStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ciemu saraksta pieprasījuma rezultāts</xs:documentation>
        </xs:annotation>
    </xs:element>
</xs:schema>