<?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:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" xmlns:contact="http://ivis.eps.gov.lv/XMLSchemas/100001/ContactInfo/v1-0" xmlns:lentity="http://ivis.eps.gov.lv/XMLSchemas/100001/LegalEntity/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="EDADocument.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-06-19</ivis:Created>
                    <ivis:Modified>2007-06-19</ivis:Modified>
                </ivis:Date>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100010:XSD-PopulationRegister-EDADocument-v1-0</ivis:Identifier>
                <ivis:Language>LV</ivis:Language>
                <ivis:Relation />
                <ivis:Status>
                    <ivis:Default>EDITED</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>Elektronisko dokumentu arhīva dokuments</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0/PersonBasicInfo.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/Attachment.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/ContactInfo/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/ContactInfo/v1-0/ContactInfo.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/LegalEntity/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/LegalEntity/v1-0/LegalEntity.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:complexType name="DocumentKindStructure">
        <xs:annotation>
            <xs:documentation>Ienākošā dokumenta veida struktūra</xs:documentation>
        </xs:annotation>
        <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
    </xs:complexType>
    <xs:complexType name="EDAIngoingDocumentStructure">
        <xs:annotation>
            <xs:documentation>EDA ienākošā dokumenta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="IngoingDocumentKind" type="DocumentKindStructure">
                <xs:annotation>
                    <xs:documentation>Ienākošā dokumenta tips</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Applicant" type="PersonStructure">
                <xs:annotation>
                    <xs:documentation>Dokumenta iesniedzējs</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EDOC" type="ivis:AttachmentStructure">
                <xs:annotation>
                    <xs:documentation>EDOC datne</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ApplicantEmail" type="contact:EmailAddressType">
                <xs:annotation>
                    <xs:documentation>Dokumenta iesniedzēja e-pasta adrese</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DocumentSubject" type="PersonStructure">
                <xs:annotation>
                    <xs:documentation>Iesniegtā dokumenta subjekts (persona uz ko attiecās šis dokuments)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Adressee" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Iesniegtā dokumenta adresāts</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="VerificationDateTime" type="xs:dateTime">
                <xs:annotation>
                    <xs:documentation>Iesniegtā dokumenta elektroniskā paraksta pārbaudes datums un laiks</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ApplicationPreparationPlace" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Iesnieguma sastādīšanas vieta</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="EDAIngoingDocument" type="EDAIngoingDocumentStructure">
        <xs:annotation>
            <xs:documentation>EDA ienākošais dokuments</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PersonStructure">
        <xs:annotation>
            <xs:documentation>Personas datu struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PersonCode" type="pers:PersonCodeType">
                <xs:annotation>
                    <xs:documentation>Personas kods</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="FirstName" type="pers:FirstNameType">
                <xs:annotation>
                    <xs:documentation>Personas vārds</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="LastName" type="pers:LastNameType">
                <xs:annotation>
                    <xs:documentation>Personas uzvārds</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="Person" type="PersonStructure">
        <xs:annotation>
            <xs:documentation>Personas dati</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="EDADocumentID" type="DocumentIdType">
        <xs:annotation>
            <xs:documentation>EDA dokumenta numurs</xs:documentation>
        </xs:annotation>
    </xs:element>
    <!--Eda izejošais dokuments-->
    <xs:element name="EDAOutgoingDocument" type="EDAOutgoingDocumentStructure">
        <xs:annotation>
            <xs:documentation>Izejošais dokuments</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="EDAOutgoingDocumentStructure">
        <xs:annotation>
            <xs:documentation>EDA izejošā dokumenta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="DocumentID" type="DocumentIdType">
                <xs:annotation>
                    <xs:documentation>EDA piešķirtais numurs izejošajam dokumentam</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EDOC" type="ivis:AttachmentStructure">
                <xs:annotation>
                    <xs:documentation>EDOC datne</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Addressee">
                <xs:annotation>
                    <xs:documentation>Izejošā dokumenta adresāts, viens no: fiziska persona vai juridiska persona</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:choice>
                        <xs:element name="Person" type="PersonStructure">
                            <xs:annotation>
                                <xs:documentation>Fiziska persona</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="LegalEntity" type="lentity:LegalEntityStructure">
                            <xs:annotation>
                                <xs:documentation>Juridiska persona</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:choice>
                </xs:complexType>
            </xs:element>
            <xs:element name="Author" type="DocumentAuthorStructure">
                <xs:annotation>
                    <xs:documentation>Sastādītājs</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PreparedOn" type="xs:dateTime">
                <xs:annotation>
                    <xs:documentation>Sagatavošanas datums un laiks</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PlaceOfPreparation" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Sagatavošanas vieta</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Signer" type="DocumentSignerStructure">
                <xs:annotation>
                    <xs:documentation>Parakstītājs</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SignatureVerifiedOn" type="xs:dateTime">
                <xs:annotation>
                    <xs:documentation>Paraksta pārbaudes datums un laiks</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!---->
    <xs:element name="OutgoingDocumentIdRequest" type="OutgoingDocumentIdRequestStructure">
        <xs:annotation>
            <xs:documentation>Izejošā dokumenta identifikatora pieprasījums</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="OutgoingDocumentIdRequestStructure">
        <xs:annotation>
            <xs:documentation>Izejošā dokumenta identifikatora pieprasījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="DocumentKind" type="DocumentKindStructure">
                <xs:annotation>
                    <xs:documentation>Dokumenta veids</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="IngoingDocumentId" type="DocumentIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Iniciējošā dokumenta numurs</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!---->
    <xs:complexType name="DocumentSignerStructure">
        <xs:annotation>
            <xs:documentation>Parakstītāja struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="FullName" type="pers:PersonFullNameStructure">
                <xs:annotation>
                    <xs:documentation>Pilns vārds</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="JobTitle" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Amata nosaukums</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DocumentAuthorStructure">
        <xs:annotation>
            <xs:documentation>Sagatavotāja struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="FullName" type="pers:PersonFullNameStructure">
                <xs:annotation>
                    <xs:documentation>Pilns vārds</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="JobTitle" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation>Amata nosaukums</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Phone" type="contact:TelephoneNumberType">
                <xs:annotation>
                    <xs:documentation>Tālruņa numurs</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EMailAddress" type="contact:EmailAddressType">
                <xs:annotation>
                    <xs:documentation>Epasta adrese</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="DocumentIdType">
        <xs:annotation>
            <xs:documentation>Dokumenta identifikatora tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString" />
    </xs:simpleType>
    <!---->
</xs:schema>