<!-- 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-1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:addr="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-1" xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-1" xmlns:prv1-0="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" 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-1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1" id="DeclarationPersonLivingPlaceLVA.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>2009-07-03Z</ivis:Created>
          <ivis:Modified>2020-05-14Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>Personas dzīvesvietas deklarācija</ivis:Default>
        </ivis:Description>
        <ivis:Format>
          <ivis:Default>text/xml</ivis:Default>
        </ivis:Format>
        <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-DeclarationPersonLivingPlaceLVA-v1-1</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.1</ivis:Version>
        </ivis:Status>
        <ivis:Subject>
          <ivis:Keyword>dzīvesvieta</ivis:Keyword>
        </ivis:Subject>
        <ivis:Title>
          <ivis:Default>DeclarationPersonLivingPlaceLVA</ivis:Default>
        </ivis:Title>
      </ivis:Metadata>
    </xs:appinfo>
  </xs:annotation>
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-1" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-1/LivingPlaceLVA.xsd" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0/Person.xsd" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" 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/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ā datu nodošanai Iedzīvotāju reģistram-->
  <xs:complexType name="PersonLivingPlaceLVAStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā datu struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SubmissionDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Deklarācijas iesniegšanas datums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonCode" type="pers:PersonCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Deklaranta personas kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LivingPlaceLVA" type="addr:PersonLivingPlaceLVAStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Deklarējamā dzīvesvieta Latvijā</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdditionalAddress" type="AdditionalAddressStructure" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Papildus adrese</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalAddressStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Papildus adreses struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Address" type="addr:PersonLivingPlaceLVAStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">VAR adrese</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveStartDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Papildus adreses spēkā esamības sākuma datums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveEndDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Papildus adreses spēkā esamības beigu datums</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DeclarationPersonLivingPlaceLVA" type="PersonLivingPlaceLVAStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā deklarācija</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="PersonLivingPlaceLVARequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā datu  saglabāšanas pieprasījuma struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonLivingPlaceLVA" type="PersonLivingPlaceLVAStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā dati</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SessionId" type="prv1-0: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="DeclarationPersonLivingPlaceLVARequest" type="PersonLivingPlaceLVARequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā dati ar CMISARI sesijas ID</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="SaveResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā 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="prv1-0:CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">CMISARI sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SaveResponse" type="SaveResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā saglabāšanas rezultāts</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>