<!-- 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-2" 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-2" xmlns:prv1-0="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:prv1-1="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-1" 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-2" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.2" 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-12-14Z</ivis:Created>
          <ivis:Modified>2020-05-14Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>Personas dzīvesvietas Latvijā 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-2</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.2</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/100010/PopulationRegister/v1-1" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-1/PersonLivingPlaceAbroad.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" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/LegalRepresentation.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="UpdateEventCode">
        <xs:annotation>
          <xs:documentation>Notikuma veida kods</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="UpdateReasonCode">
        <xs:annotation>
          <xs:documentation>Aktualizēšanas iemesls</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="PersonCode" type="pers:PersonCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas, kurai tiek aktualizētas dzīvesvietas ziņas, personas kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ServiceInstanceID" type="ivis:URNType">
        <xs:annotation>
          <xs:documentation>Ārējās sistēmas instances identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Declarant" type="DeclarantStructure">
        <xs:annotation>
          <xs:documentation>Personas, kurai tiek aktualizētas dzīvesvietas ziņas</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RegistrationDate" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Dzīvesvietas notikuma aktualizēšanas datums IR</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IncomingDocument" type="IncomingDocumentStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Dati par saņemto lietvedības dokumentu</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Address" type="AddressStructure" minOccurs="0" 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="AdditionalData" type="AdditionalDataStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Deklarācijas papilddati</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Attachment" type="ivis:AttachmentStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniegtā datne</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AddressStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Papildus adreses struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IsMainAddress" type="xs:boolean">
        <xs:annotation>
          <xs:documentation>Ir pamata adrese (jā/nē)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveStartDate" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Papildu adreses spēkā stāšanās datums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveEndDate" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Papildu adreses spēkā būšanas beigu datums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="PersonLivingPlaceLVA" type="addr:PersonLivingPlaceLVAStructure">
          <xs:annotation>
            <xs:documentation>Personas dzīvesvietas adrese Latvijā</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PersonLivingPlaceAbroad" type="prv1-1:LivingPlaceAbroadStructure">
          <xs:annotation>
            <xs:documentation>Personas dzīvesvietas adrese ārzemēs</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </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:element name="DeclarationID" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Deklarācijas 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:complexType name="GetDeclaredLivingPlaceParametersStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā izdūšanas parametru struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DeclarationID" type="xs:string">
        <xs:annotation>
          <xs:documentation>Deklarācijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonCode" type="pers:PersonCodeType">
        <xs:annotation>
          <xs:documentation>Deklaranta personas kods</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GetDeclaredLivingPlaceParameters" type="GetDeclaredLivingPlaceParametersStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā izgūšanas parametri</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="GetDeclaredLivingPlaceRequestStructure">
    <xs:annotation>
      <xs:documentation>Personas dzīvesvietas Latvijā izgūšanas pieprasījuma struktūra </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <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="GetDeclaredLivingPlaceParameters" type="GetDeclaredLivingPlaceParametersStructure">
        <xs:annotation>
          <xs:documentation>Personas dzīvesvietas Latvijā izgūšanas 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="GetDeclaredLivingPlaceRequest" type="GetDeclaredLivingPlaceRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Deklarāciajs identifikators un deklaranta personaskods ar CMISARI sesijas ID</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="GetDeclaredLivingPlaceResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā izgūšanas rezultāta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <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: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="PersonLivingPlaceLVA" type="PersonLivingPlaceLVAStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā dati</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GetDeclaredLivingPlaceResponse" type="GetDeclaredLivingPlaceResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas dzīvesvietas Latvijā izgūšanas rezultāts</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="IncomingDocumentStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Saņemtā lietvedības dokumneta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SubmissionPlace" type="SubmissionPlaceStructure">
        <xs:annotation>
          <xs:documentation>Dati par lietvedības dokumenta iesniegšanas vietu</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Submitter" type="SubmitterStructure">
        <xs:annotation>
          <xs:documentation>Dati par lietvedības dokumenta iesniedzēju</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RegistrationDate" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Reģistrāciajs datums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RegistrationNumberIndex" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Reģistrācijas numura indekss</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RegistrationNumber" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Reģistrācijas numurs</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DepartmentCode" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Reģistrācijas nodaļas kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DepartmentName" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Reģistrācijas nodaļas nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Notes" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Piezīmes par lietvedības dokumentu</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SubmissionPlaceStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Iesniegšanas vietas datu struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlaceCode" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniegšanas vietas kods</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="PlaceName" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniegšanas vieta nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DepartmentCode" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniegšanas iestādes kods</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="DepartmentName" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniegšanas iestādes nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CoveringLetterDate" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Pavadvēstules datums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CoveringLetterRegNumber" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Pavadvēstules reģistrācijas numurs</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SubmitterStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Iesniedzēja/nosūtītāja datu struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SubmitterTypeCode" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniedzēja veida kods</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="SubmitterTypeName" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniedzēja veida nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonCode" type="pers:PersonCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniedzēja personas kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" type="pers:PersonFullNameStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Iesniedzēja pilns vārds</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubmissionDate" type="xs:date">
        <xs:annotation>
          <xs:documentation>Iesniedzēja dokumenta datums</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalDataStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Deklarācijas papilddatu struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LegalBasis" type="LegalBasisStructure">
        <xs:annotation>
          <xs:documentation>Tiesiskais pamats</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepresentationCode" type="prv1-0:LegalRepresentationKindType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Pārstāvības veids</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepresentationName" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Pārstāvības nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LegalBasisStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Tiesiskā pamata dzīvesvietas deklarācijai dotajā adresē struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Code" type="LegalBasisCodeType">
        <xs:annotation>
          <xs:documentation>Tiesiskā pamata kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" type="xs:string">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Tiesiskais pamata nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Details" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Papildus informācija par norādīto tiesisko pamatu </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="LegalBasisCodeType">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Tiesiskais pamatojums, viens no: IT(Īpašuma tiesības), LTIL(Lietošanas tiesības, kuru iegūšanas pamats ir īres līgums), LTNL(Lietošanas tiesības, kuru iegūšanas pamats ir nomas līgums), LTL(Lietošanas tiesības, kuru iegūšanas pamats ir laulības), LTR(Lietošanas tiesības, kuru iegūšanas pamats ir radniecība), LTVI(Lietošanas tiesības, kuru iegūšanas pamats ir vienošanās ar īpašnieku),  LTCITP(Lietošanas tiesības, kurām ir cits iegūšanas tiesiskais pamats)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="IT" />
      <xs:pattern value="LTIL" />
      <xs:pattern value="LTNL" />
      <xs:pattern value="LTL" />
      <xs:pattern value="LTR" />
      <xs:pattern value="LTVI" />
      <xs:pattern value="LTCITP" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="DeclarantStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Dati par deklarējamo personu</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonCode" type="pers:PersonCodeType">
        <xs:annotation>
          <xs:documentation>Personas kods personai, kurai tiek aktualizētas dzīvesvietas ziņas</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" type="pers:PersonFullNameStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Personaspilns vārds, kurai tiek aktualizētas dzīvesvietas ziņas</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>