<!-- edited with XMLSpy v2007 rel. 3 (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" xmlns:prv1-2="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-2" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" xmlns:epcs="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="DeclarationPersonLivingPlace.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>2011-05-31Z</ivis:Created>
          <ivis:Modified>2020-05-14Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>Shēma personas dzīvesvietas deklarācijas Latvijā vai ārvalstī datu nodošanai Iedzīvotāju reģistrim</ivis:Default>
        </ivis:Description>
        <ivis:Format>
          <ivis:Default>text/xml</ivis:Default>
        </ivis:Format>
        <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-DeclarationPersonLivingPlace-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:Subject>
        <ivis:Title>
          <ivis:Default>DeclarationPersonLivingPlace</ivis:Default>
        </ivis:Title>
      </ivis:Metadata>
    </xs:appinfo>
  </xs:annotation>
  <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/CMISARI.xsd" />
  <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/IRDocument.xsd" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-2" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-2/DeclarationPersonLivingPlaceLVA.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/Identification.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:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0/ReturnCode.xsd" />
  <!--Shēma Personas dzīvesvietas deklarācijas Latvijā vai ārvalstī datu nodošanai Iedzīvotāju reģistrim-->
  <xs:complexType name="PersonLivingPlaceStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai ārvalstī datu struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Address" type="prv1-2:AddressStructure" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Dati par adresi(ēm), kuras persona norādījusi</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IRDocument" type="IRDocumentStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Iedzīvotāju reģistrim nosūtāmais dokuments</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DeclarationPersonLivingPlace" type="PersonLivingPlaceStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai ārvalstī deklarācija</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="PersonLivingPlaceRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai ārvalstī datu saglabāšanas pieprasījuma struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonLivingPlace" type="PersonLivingPlaceStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai arvalstī dati</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">CMISARI sesijas identifikators</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="DeclarationPersonLivingPlaceRequest" type="PersonLivingPlaceRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai ārvalstī dati ar CMISARI sesijas ID</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="PersonLivingPlaceResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai ārvalstī saglabāšanas rezultāta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Error" type="ivis:ErrorStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Nesekmīgas servisa izpildes gadījumā atgriuezta kļūda</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReturnCode" type="epcs:ReturnCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="lv">0 - izpilde veiksmīga, 1 - izpilde neveiksmīga</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SessionID" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">CMISARI sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeclarationID" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Deklarācijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DeclarationPersonLivingPlaceResponse" type="PersonLivingPlaceResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā vai ārvalstī saglabāšanas rezultāts</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>