<!-- 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="StreetSearch.xsd">
  <xs:annotation>
    <xs:appinfo>
      <ivis:Metadata>
        <ivis:Contributor CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Contributor>
        <ivis:Creator CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Creator>
        <ivis:Date>
          <ivis:Created>2007-09-06Z</ivis:Created>
          <ivis:Modified>2020-05-14Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>Shēmas ielu 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-StreetSearch-v1-0</ivis:Identifier>
        <ivis:Language>LV</ivis:Language>
        <ivis:Publisher CodeListCodeValue="100001">Valsts informācijas sistēmu savietotājs (VISS)</ivis:Publisher>
        <ivis:Relation>
          <ivis:ConformsTo Href="URN:IVIS:100001:DOC-FR-XML">XML shēmu izstrādes vadlīnijas</ivis:ConformsTo>
        </ivis:Relation>
        <ivis:Status>
          <ivis:Default>PUBLISHED</ivis:Default>
          <ivis:Version>1.0</ivis:Version>
        </ivis:Status>
        <ivis:Subject>
          <ivis:Keyword>dzīvesvieta</ivis:Keyword>
          <ivis:Keyword>adrese</ivis:Keyword>
          <ivis:Keyword>iela</ivis:Keyword>
        </ivis:Subject>
        <ivis:Title>
          <ivis:Default>StreetSearch</ivis:Default>
        </ivis:Title>
      </ivis:Metadata>
    </xs:appinfo>
  </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/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="StreetParametersStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu 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="VillageCode" type="addr:VillageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ciema kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StreetName" type="addr:StreetNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ielas nosaukums vai nosaukuma sākuma daļa</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StreetParameters" type="StreetParametersStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu saraksta parametri</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="StreetRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu 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="StreetParameters" type="StreetParametersStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ielu 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="StreetRequest" type="StreetRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu saraksta pieprasījums</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--Rezultāts-->
  <xs:complexType name="StreetStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielas datu struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StreetID" type="xs:integer">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ielas PMLP ID</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="addr:StreetCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ielas PMLP kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" type="addr:StreetNameType">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ielas nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ieraksts spēkā no</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ieraksts spēkā līdz</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LastChanges" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Pēdējās izmaiņas datums</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StreetListStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu saraksta tips</xs:documentation>
    </xs:annotation>
    <xs:sequence maxOccurs="unbounded">
      <xs:element name="Street" type="StreetStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Ielu saraksts</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StreetList" type="StreetListStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu saraksts</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="StreetResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu saraksta pieprasījuma rezultāta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SessionId" type="CMISARISessionIdType">
        <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:annotation>
            <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="StreetList" type="StreetListStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Ielu saraksts</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StreetResponse" type="StreetResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Ielu saraksta pieprasījuma rezultāts</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>