{"action":"created","comment":{"url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/comments/75834336","id":75834336,"diff_hunk":"@@ -0,0 +1,1060 @@\n+﻿<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n+<xs:schema elementFormDefault=\"qualified\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\r\n+    <xs:complexType name=\"menetluseAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"menValitseja\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menetleja\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"uusValitseja\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menSaaja\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menKasutusLeping\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menNumber\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menLiik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menAlamliik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menSeisund\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menAlgatKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menLopetKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menVoorandViis\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menKirjeldus\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"2000\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"menMahaKandmPohjus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutusLepinguAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"valitseja\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutajaOrg\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menetlus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"varaleping\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguLiik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguAlamliik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"registreeritud\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtibAlates\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtibKuni\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tahtaegAastates\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tahtajaLiik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"yleandmiseAeg\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kirjeldus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ennetahtaegLopet\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ennetahtaegSankts\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"trahvSumma\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepUuendEesoigus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepUuendTeavitusKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"energiaTohusAruandlKohustus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutustasuAlus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasOigusAllkasutAnda\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"allkasutAndmOigus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tasuMuutmAluseIndeks\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"indeksiSuurus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"indeksiAasta\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"muutuseMaxMaar\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"yyriMuutmTingimused\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"arhiiviKandmiseKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lopetKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kinnistuRegOsaNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lopetViis\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutusLepinguOsapooled\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"kasutuslepinguOsapool\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutuslepinguNr\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rollKasutuslepingus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutuslepinguVersioon\" type=\"xs:integer\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"varaLepinguAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"eelnevaLepinguNr\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"liik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguEnotariId\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"solmitud\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtibAlates\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtibKuni\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dhsNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dhsRegKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"leping\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"markused\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"url\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"failiNimi\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"seotudMenetluseNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tahtaeg\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tahtajaLiik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"objektiAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"varaKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"varaNimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"valitseja\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"volAsutus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"haldaja\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menetluseNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tekkemenetlus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"arveleVotmKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"arhivKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objLiik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutEesmark\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kvrMarkus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasEhr\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"soetMaksumusKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"jaakVaartusKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasMaata\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"maaVanaKoodRegNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"yldpindM\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"maaSoetMaksumus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasSap\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"aadress\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"Riik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"aadressTekst\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"2000\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"maakondKood\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"valdKood\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasOnPeamine\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"koodAadress\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"hooneAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"hooneEhrKood\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"20\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"hooneNimetus\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"500\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"hooneVanaRvrKood\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"14\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"hooneEhrAlates\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneValmimiseAasta\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneEhitAlunePind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneEnergiamargis\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"20\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"hooneEnergiamargiseAeg\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneKorteriteArv\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneTubadeArv\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneKoetavPindM\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneKorruseid\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneMarkused\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneKasulikPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneEluruumidePind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneElamisPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneRegistriPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneVaraKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneSoetusMaksumus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneJaakVaartus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneArveleVoetudKpv\" type=\"xs:date\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneKasRegVara\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneAdsOid\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneSeisund\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hoonePeamineKasutus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"hooneKasutOtstarbed\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence>\r\n+                        <xs:element name=\"kasutOtstarve\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                            <xs:complexType>\r\n+                                <xs:sequence>\r\n+                                    <xs:element name=\"kasutOtsNimetus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"kasutOtstPindKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"kasPeamineKasutOts\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"kasulikPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"elamisPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"abiruumidePind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"lahusPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"yldkasutPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"mitteelurPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                </xs:sequence>\r\n+                            </xs:complexType>\r\n+                        </xs:element>\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"rajatiseAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"rajatiseEhrKood\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseVanaKood\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseNimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatisEhrAlates\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseValmimiseAasta\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseEhitiseAlunePindM\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseMahtM\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseKorgus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatisePikkus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseLaius\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseMarkused\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"2000\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"rajatisKasOnRegVara\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseObjekt\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseArveleVotmKpv\" type=\"xs:date\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseRegVaraOsa\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseObjektiKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseSoetusMaksumus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseJaakVaartus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseAdsOid\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatisePeamineKasutus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseAadress\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"rajatiseKasutOtstarbed\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                        <xs:element name=\"kasutOtstarve\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                            <xs:complexType>\r\n+                                <xs:sequence>\r\n+                                    <xs:element name=\"otstarve\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"pind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                </xs:sequence>\r\n+                            </xs:complexType>\r\n+                        </xs:element>\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"dokumendiAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"dokNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokLiik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokNimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokValjastaja\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokViideDokumendile\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"tasud\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"teenusteTasudeKokkulepe\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence>\r\n+                        <xs:element name=\"tasuKasutTasuAlus\" type=\"xs:string\" />\r\n+                        <xs:element name=\"tasuKasutTasuAluseMarkus\" type=\"xs:string\" />\r\n+                        <xs:element name=\"tasuArvestusperiood\" type=\"xs:string\" />\r\n+                        <xs:element name=\"tasuKehtivKasutTasuKmta\" type=\"xs:decimal\" />\r\n+                        <xs:element name=\"tasuLisanduvKm\" type=\"xs:string\" />\r\n+                        <xs:element name=\"tasuLepinguObjKasutTasuKokku\" type=\"xs:decimal\" />\r\n+                        <xs:element name=\"tasuTeenusedKasutTasus\" type=\"xs:string\" />\r\n+                        <xs:element name=\"tasuKorvalteenused\" type=\"xs:string\" />\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+            <xs:element name=\"tasudeMuutmiseTingim\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence>\r\n+                        <xs:element name=\"tingTasuMuutmAlused\" type=\"xs:string\" />\r\n+                        <xs:element name=\"tingMuudKasutMuutmTing\" type=\"xs:string\" />\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+            <xs:element name=\"tasuArvestamineJaTasumine\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutusKokkulepped\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"kasutLepinguNr\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutLepinguVersioon\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtivKasutTasuKmta\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtivusPeriood\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtivKasutTasuAlguseKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasKaibemaksuga\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kaibemaksuSumma\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kehtivKasutTasuKmga\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tasumisSagedusAastas\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tasuArvestAlguseKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"arveEsitKpv\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tasumiseAegArveSaamisest\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"viiviseKirjeldus\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"200\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutuseInvestKohustused\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"kasYyrileAndjalInvestKohust\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"andjaInvestKohustTahtaeg\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"andjaInvestKohustSumma\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasYyrileVotjalInvestKohust\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"saajaInvestKohustTahtaeg\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"saajaInvestKohustSumma\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tagatisraha\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tagatisrahaSumma\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutusTeenused\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"grupp\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"nimetus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"vaartus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutusLepinguVersioonid\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"versiooniNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"nimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"aeg\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"url\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"faili_nimi\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"sisu\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"markused\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutusLepinguKontakt\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"andjaIsik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"andjaEmail\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"andjaTelef\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"votjaIsik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"votjaEmail\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguLopustTeavitKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"jargmTasuTeavitKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguUuendTeavitKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguTeavitSaatmiseKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguUuendTeavitSaatmiseKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lepinguTeavitusAegTehtudKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"organisatsiooniAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"regKood\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"register\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"nimi\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"riik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"aadresstekst\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tyyp\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"varaLepinguOsapooled\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"orgRegKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"varaLepinguNotarId\" type=\"xs:integer\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"varaLepinguRollLepingus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kasutLepinguObjVersioon\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"objKasutLepVerNr\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objKirjeldus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objPindKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objHoonetKasutTasuKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objHooneteKasutTasuYhikuKohta\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objParkimKohadAinukasutKokku\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objParkimKohadHoones\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objHoonesParkimTasuKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objHoonesPakimTasuYhikuKohta\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objTerritParkimiskohti\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objTerritParkimKasutTasuKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objTerritParkimKasutTasuYhikuKohta\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objMaaAinukasutPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objMaaAinukasutTasuYhikuKohta\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objMaaAinukasutHindKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objLepinguObjKasutTasudKokku\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objAadress\" type=\"aadress\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"toiminguteAjalugu\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"tegevuseAeg\" type=\"xs:dateTime\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tegevuseLiik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tegevuseObjekt\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"tegevuseKirjeldus\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"256\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"muudatuseTegija\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"menetlusDokument\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"dokNimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokSisu\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokLiik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokFailiNimi\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokValjastaja\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"dokUrl\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"menetlusObjekt\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"valitseja\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"varaKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"lisatudKpv\" type=\"xs:date\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menetluseNr\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"valjaArvatudKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"teostatudKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"varaLepinguNotarId\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"volitatud\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasutuseesmark\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"objektiOsised\" minOccurs=\"0\" maxOccurs=\"unbounded\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence>\r\n+                        <xs:element name=\"objektiOsis\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                            <xs:complexType>\r\n+                                <xs:sequence>\r\n+                                    <xs:element name=\"varaKood\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"pindala\" type=\"xs:decimal\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                </xs:sequence>\r\n+                            </xs:complexType>\r\n+                        </xs:element>\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"ehrHooneAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"peamineKasutus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ehrKood\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"nimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"adsOid\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"esmakasutus\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:integer\">\r\n+                        <xs:totalDigits value=\"4\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"seisund\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"yldpind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"abiruumidePind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ehitisalunePind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"koetavPind\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"maaaluseidKorruseid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:integer\">\r\n+                        <xs:totalDigits value=\"3\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"maksKorruseid\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kultMalestisKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kultMalestisTunnus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"suletudNetoPind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"versiooniKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"energiaKehtivLoppKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"energiaklass\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"energiaMargiseKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kasEtaKekMargis\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"etaKekVaartus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"versioon\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ehrKasutOtstarbed\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence>\r\n+                        <xs:element name=\"kasutOtstarve\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                            <xs:complexType>\r\n+                                <xs:sequence>\r\n+                                    <xs:element name=\"otstarve\" type=\"xs:string\" minOccurs=\"1\" />\r\n+                                    <xs:element name=\"pind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                </xs:sequence>\r\n+                            </xs:complexType>\r\n+                        </xs:element>\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"ehrRajatiseAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"ehrKood\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"nimetus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"peamineKasutus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ehrAlatesKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"valmimiseAasta\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"ehitAlunePind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kubatuur\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"korgus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"pikkus\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"laius\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"seisund\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"versioon\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"aadressTekst\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"2000\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"ehrKasutOtstarbed\" minOccurs=\"0\" maxOccurs=\"unbounded\">\r\n+                <xs:complexType>\r\n+                    <xs:sequence>\r\n+                        <xs:element name=\"kasutOtstarve\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                            <xs:complexType>\r\n+                                <xs:sequence>\r\n+                                    <xs:element name=\"otstarve\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    <xs:element name=\"pind\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                </xs:sequence>\r\n+                            </xs:complexType>\r\n+                        </xs:element>\r\n+                    </xs:sequence>\r\n+                </xs:complexType>\r\n+            </xs:element>\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"menetluseTeadeteAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"menTeadeSaaja\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menTeadeLiik\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menTeadeRegNr\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"20\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"menTeadeSaadetud\" type=\"xs:date\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menTeadeSisu\" minOccurs=\"1\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"2000\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"menTeadeVastatud\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menTeadeTahtaeg\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"menTeadeVastus\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                <xs:simpleType>\r\n+                    <xs:restriction base=\"xs:string\">\r\n+                        <xs:maxLength value=\"2000\" />\r\n+                    </xs:restriction>\r\n+                </xs:simpleType>\r\n+            </xs:element>\r\n+            <xs:element name=\"menTeadeSeotDokNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kinnisasjaAndmed\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"regOsaNr\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kinnistuLiik\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kinnistatudKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"suletudKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"aluskinnistu\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"omandiosadeArv\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"omandiosadeKoguArv\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"korter\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"versioon\" type=\"xs:integer\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"reaalosaPindala\" type=\"xs:decimal\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:complexType name=\"kinnisasjaKoosseis\">\r\n+        <xs:sequence>\r\n+            <xs:element name=\"katTunnus\" type=\"xs:string\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"koosseisusAlates\" type=\"xs:date\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"koosseisusKuni\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+            <xs:element name=\"kandeNr\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+        </xs:sequence>\r\n+    </xs:complexType>\r\n+    <xs:element name=\"menetlused\">\r\n+        <xs:complexType>\r\n+            <xs:sequence>\r\n+                <xs:element name=\"menetluseAndmed\" type=\"menetluseAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"menetlusObjektid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"menetlusObjekt\" type=\"menetlusObjekt\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"lepingud\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"leping\" type=\"varaLepinguAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"menetluseDokumendid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"menetluseDokument\" type=\"menetlusDokument\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"menTeated\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"teade\" type=\"menetluseTeadeteAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"katkestused\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"katkestus\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"katkestatudKpv\" type=\"xs:date\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                        <xs:element name=\"jatkatudKpv\" type=\"xs:date\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                        <xs:element name=\"peatamisePohjus\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"toiminguteAjalugu\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"ajalooKanne\" type=\"toiminguteAjalugu\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+            </xs:sequence>\r\n+        </xs:complexType>\r\n+    </xs:element>\r\n+    <xs:element name=\"lepingud\">\r\n+        <xs:complexType>\r\n+            <xs:sequence>\r\n+                <xs:element name=\"kasutLepingud\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"kasutLepinguAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"lepinguAndmed\" type=\"kasutusLepinguAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                        <xs:element name=\"lepingugaSeotudMenetlus\" type=\"menetluseAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"varaLepingud\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"varaLepinguAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"varaLepinguAndmed\" type=\"varaLepinguAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                        <xs:element name=\"lepingugaSeotudVarad\" type=\"objektiAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+            </xs:sequence>\r\n+        </xs:complexType>\r\n+    </xs:element>\r\n+    <xs:element name=\"omandamisLepingud\">\r\n+        <xs:complexType>\r\n+            <xs:sequence>\r\n+                <xs:element name=\"menetluseAndmed\" type=\"menetluseAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"menetluseObjektid\" minOccurs=\"1\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"menetluseObjekt\" type=\"objektiAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"lepingud\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"leping\" type=\"lepinguAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"dokumendid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"dokument\" type=\"dokumendiAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"teated\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"teade\" type=\"menetluseTeadeteAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"toiminguteAjalugu\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"ajalooKanne\" type=\"toiminguteAjalugu\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+            </xs:sequence>\r\n+        </xs:complexType>\r\n+    </xs:element>\r\n+    <xs:element name=\"kasutusLepingud\">\r\n+        <xs:complexType>\r\n+            <xs:sequence>\r\n+                <xs:element name=\"lepinguAndmed\" minOccurs=\"1\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"kasutuslepinguAndmed\" type=\"kasutusLepinguAndmed\" minOccurs=\"1\" />\r\n+                            <xs:element name=\"lepinguVersioonid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"lepinguVersioon\" type=\"kasutusLepinguVersioonid\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                            <xs:element name=\"lepinguObjektiVersioonid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"lepinguObjektiVersioon\" type=\"kasutLepinguObjVersioon\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"kasutLepinguOsapooled\" minOccurs=\"0\" maxOccurs=\"unbounded\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"kasutLepinguOsapool\" type=\"kasutusLepinguOsapooled\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"varad\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"lepinguObjektideLoetelu\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"lepinguObjekt\" type=\"objektiAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                            <xs:element name=\"varadeLoetelu\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"vara\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                                            <xs:complexType>\r\n+                                                <xs:sequence>\r\n+                                                    <xs:element name=\"kyAndmed\" type=\"objektiAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                                    <xs:element name=\"aadress\" type=\"aadress\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                                </xs:sequence>\r\n+                                            </xs:complexType>\r\n+                                        </xs:element>\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                            <xs:element name=\"varaLepingud\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"leping\" minOccurs=\"1\" maxOccurs=\"unbounded\">\r\n+                                            <xs:complexType>\r\n+                                                <xs:sequence>\r\n+                                                    <xs:element name=\"lepinguAndmed\" type=\"varaLepinguAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                                                    <xs:element name=\"lepinguOsapooled\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                                                        <xs:complexType>\r\n+                                                            <xs:sequence>\r\n+                                                                <xs:element name=\"varaLepinguOsapool\" type=\"varaLepinguOsapooled\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                                            </xs:sequence>\r\n+                                                        </xs:complexType>\r\n+                                                    </xs:element>\r\n+                                                </xs:sequence>\r\n+                                            </xs:complexType>\r\n+                                        </xs:element>\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"tasud\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"kasutusKokkulepped\" type=\"kasutusKokkulepped\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\r\n+                            <xs:element name=\"kasutusTeenused\" minOccurs=\"0\" maxOccurs=\"unbounded\">\r\n+                                <xs:complexType>\r\n+                                    <xs:sequence>\r\n+                                        <xs:element name=\"kasutusTeenus\" type=\"kasutusTeenused\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                                    </xs:sequence>\r\n+                                </xs:complexType>\r\n+                            </xs:element>\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"muudTingimused\" type=\"kasutuseInvestKohustused\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"menetluseAndmed\" type=\"menetluseAndmed\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"organisatsioonid\" type=\"organisatsiooniAndmed\" minOccurs=\"0\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"kasutusLepinguKontaktid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"lepinguKontakt\" type=\"kasutusLepinguKontakt\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+            </xs:sequence>\r\n+        </xs:complexType>\r\n+    </xs:element>\r\n+    <xs:element name=\"rajatised\">\r\n+        <xs:complexType>\r\n+            <xs:sequence>\r\n+                <xs:element name=\"kehtivadRajatised\" type=\"rajatiseAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"kehtivadEhrRajatised\" type=\"ehrRajatiseAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"varasemadRajatiseAndmed\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"ajalugu\" type=\"rajatiseAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"rajatiseObjektiAndmed\" type=\"objektiAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"rajatiseAadressid\" minOccurs=\"0\" maxOccurs=\"unbounded\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"aadress\" type=\"aadress\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+            </xs:sequence>\r\n+        </xs:complexType>\r\n+    </xs:element>\r\n+    <xs:element name=\"hooned\">\r\n+        <xs:complexType>\r\n+            <xs:sequence>\r\n+                <xs:element name=\"kehtivadHooned\" type=\"hooneAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"kehtivadEhrHooned\" type=\"ehrHooneAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+                <xs:element name=\"varasemadHooneAndmed\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"ajalugu\" type=\"hooneAndmed\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"hooneAadressid\" minOccurs=\"0\" maxOccurs=\"1\">\r\n+                    <xs:complexType>\r\n+                        <xs:sequence>\r\n+                            <xs:element name=\"aadress\" type=\"aadress\" minOccurs=\"1\" maxOccurs=\"unbounded\" />\r\n+                        </xs:sequence>\r\n+                    </xs:complexType>\r\n+                </xs:element>\r\n+                <xs:element name=\"hooneObjektiAndmed\" type=\"objektiAndmed\" minOccurs=\"1\" maxOccurs=\"1\" />\r\n+            </xs:sequence>\r\n+        </xs:complexType>\r\n+    </xs:element>\r\n+    <xs:element name=\"maad\">\r","path":"teenused/KVR_XSD_2016_08_17.xsd","position":873,"original_position":873,"commit_id":"033500c417403eb9752df7e6664f50e34f33a986","original_commit_id":"033500c417403eb9752df7e6664f50e34f33a986","user":{"login":"tormi","id":146800,"avatar_url":"https://avatars.githubusercontent.com/u/146800?v=3","gravatar_id":"","url":"https://api.github.com/users/tormi","html_url":"https://github.com/tormi","followers_url":"https://api.github.com/users/tormi/followers","following_url":"https://api.github.com/users/tormi/following{/other_user}","gists_url":"https://api.github.com/users/tormi/gists{/gist_id}","starred_url":"https://api.github.com/users/tormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormi/subscriptions","organizations_url":"https://api.github.com/users/tormi/orgs","repos_url":"https://api.github.com/users/tormi/repos","events_url":"https://api.github.com/users/tormi/events{/privacy}","received_events_url":"https://api.github.com/users/tormi/received_events","type":"User","site_admin":false},"body":"Maade / katastriüksuste andmed on puudu. Hetkel viitab maad > katYksuseAndmed > kehtivadAndmed varaobjektile (objektiAndmed)","created_at":"2016-08-23T09:52:17Z","updated_at":"2016-08-23T09:52:17Z","html_url":"https://github.com/kinnisvara/RKVR/pull/33#discussion_r75834336","pull_request_url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/kinnisvara/RKVR/pulls/comments/75834336"},"html":{"href":"https://github.com/kinnisvara/RKVR/pull/33#discussion_r75834336"},"pull_request":{"href":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33","id":81938779,"html_url":"https://github.com/kinnisvara/RKVR/pull/33","diff_url":"https://github.com/kinnisvara/RKVR/pull/33.diff","patch_url":"https://github.com/kinnisvara/RKVR/pull/33.patch","issue_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/33","number":33,"state":"open","locked":false,"title":"KVR avaandmete XSD","user":{"login":"tormi","id":146800,"avatar_url":"https://avatars.githubusercontent.com/u/146800?v=3","gravatar_id":"","url":"https://api.github.com/users/tormi","html_url":"https://github.com/tormi","followers_url":"https://api.github.com/users/tormi/followers","following_url":"https://api.github.com/users/tormi/following{/other_user}","gists_url":"https://api.github.com/users/tormi/gists{/gist_id}","starred_url":"https://api.github.com/users/tormi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormi/subscriptions","organizations_url":"https://api.github.com/users/tormi/orgs","repos_url":"https://api.github.com/users/tormi/repos","events_url":"https://api.github.com/users/tormi/events{/privacy}","received_events_url":"https://api.github.com/users/tormi/received_events","type":"User","site_admin":false},"body":"Draft Datelilt","created_at":"2016-08-19T07:39:41Z","updated_at":"2016-08-23T09:52:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d914f3c6a9553de1e2d3bb7c3b623e9466d2f2ff","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33/commits","review_comments_url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33/comments","review_comment_url":"https://api.github.com/repos/kinnisvara/RKVR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/33/comments","statuses_url":"https://api.github.com/repos/kinnisvara/RKVR/statuses/033500c417403eb9752df7e6664f50e34f33a986","head":{"label":"kinnisvara:avaxsd","ref":"avaxsd","sha":"033500c417403eb9752df7e6664f50e34f33a986","user":{"login":"kinnisvara","id":12710199,"avatar_url":"https://avatars.githubusercontent.com/u/12710199?v=3","gravatar_id":"","url":"https://api.github.com/users/kinnisvara","html_url":"https://github.com/kinnisvara","followers_url":"https://api.github.com/users/kinnisvara/followers","following_url":"https://api.github.com/users/kinnisvara/following{/other_user}","gists_url":"https://api.github.com/users/kinnisvara/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnisvara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnisvara/subscriptions","organizations_url":"https://api.github.com/users/kinnisvara/orgs","repos_url":"https://api.github.com/users/kinnisvara/repos","events_url":"https://api.github.com/users/kinnisvara/events{/privacy}","received_events_url":"https://api.github.com/users/kinnisvara/received_events","type":"Organization","site_admin":false},"repo":{"id":37125333,"name":"RKVR","full_name":"kinnisvara/RKVR","owner":{"login":"kinnisvara","id":12710199,"avatar_url":"https://avatars.githubusercontent.com/u/12710199?v=3","gravatar_id":"","url":"https://api.github.com/users/kinnisvara","html_url":"https://github.com/kinnisvara","followers_url":"https://api.github.com/users/kinnisvara/followers","following_url":"https://api.github.com/users/kinnisvara/following{/other_user}","gists_url":"https://api.github.com/users/kinnisvara/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnisvara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnisvara/subscriptions","organizations_url":"https://api.github.com/users/kinnisvara/orgs","repos_url":"https://api.github.com/users/kinnisvara/repos","events_url":"https://api.github.com/users/kinnisvara/events{/privacy}","received_events_url":"https://api.github.com/users/kinnisvara/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kinnisvara/RKVR","description":"Olemasoleva riigi kinnisvararegistri töötuba","fork":false,"url":"https://api.github.com/repos/kinnisvara/RKVR","forks_url":"https://api.github.com/repos/kinnisvara/RKVR/forks","keys_url":"https://api.github.com/repos/kinnisvara/RKVR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinnisvara/RKVR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinnisvara/RKVR/teams","hooks_url":"https://api.github.com/repos/kinnisvara/RKVR/hooks","issue_events_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/events{/number}","events_url":"https://api.github.com/repos/kinnisvara/RKVR/events","assignees_url":"https://api.github.com/repos/kinnisvara/RKVR/assignees{/user}","branches_url":"https://api.github.com/repos/kinnisvara/RKVR/branches{/branch}","tags_url":"https://api.github.com/repos/kinnisvara/RKVR/tags","blobs_url":"https://api.github.com/repos/kinnisvara/RKVR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinnisvara/RKVR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinnisvara/RKVR/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinnisvara/RKVR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinnisvara/RKVR/statuses/{sha}","languages_url":"https://api.github.com/repos/kinnisvara/RKVR/languages","stargazers_url":"https://api.github.com/repos/kinnisvara/RKVR/stargazers","contributors_url":"https://api.github.com/repos/kinnisvara/RKVR/contributors","subscribers_url":"https://api.github.com/repos/kinnisvara/RKVR/subscribers","subscription_url":"https://api.github.com/repos/kinnisvara/RKVR/subscription","commits_url":"https://api.github.com/repos/kinnisvara/RKVR/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinnisvara/RKVR/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinnisvara/RKVR/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinnisvara/RKVR/contents/{+path}","compare_url":"https://api.github.com/repos/kinnisvara/RKVR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinnisvara/RKVR/merges","archive_url":"https://api.github.com/repos/kinnisvara/RKVR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinnisvara/RKVR/downloads","issues_url":"https://api.github.com/repos/kinnisvara/RKVR/issues{/number}","pulls_url":"https://api.github.com/repos/kinnisvara/RKVR/pulls{/number}","milestones_url":"https://api.github.com/repos/kinnisvara/RKVR/milestones{/number}","notifications_url":"https://api.github.com/repos/kinnisvara/RKVR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinnisvara/RKVR/labels{/name}","releases_url":"https://api.github.com/repos/kinnisvara/RKVR/releases{/id}","deployments_url":"https://api.github.com/repos/kinnisvara/RKVR/deployments","created_at":"2015-06-09T10:20:01Z","updated_at":"2016-01-20T11:41:39Z","pushed_at":"2016-08-19T07:39:41Z","git_url":"git://github.com/kinnisvara/RKVR.git","ssh_url":"git@github.com:kinnisvara/RKVR.git","clone_url":"https://github.com/kinnisvara/RKVR.git","svn_url":"https://github.com/kinnisvara/RKVR","homepage":"https://riigivara.fin.ee/kvr/","size":2977,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":26,"forks":2,"open_issues":26,"watchers":1,"default_branch":"master"}},"base":{"label":"kinnisvara:master","ref":"master","sha":"fa54b08e007e215c7dcf54d8176576ecd760d2a1","user":{"login":"kinnisvara","id":12710199,"avatar_url":"https://avatars.githubusercontent.com/u/12710199?v=3","gravatar_id":"","url":"https://api.github.com/users/kinnisvara","html_url":"https://github.com/kinnisvara","followers_url":"https://api.github.com/users/kinnisvara/followers","following_url":"https://api.github.com/users/kinnisvara/following{/other_user}","gists_url":"https://api.github.com/users/kinnisvara/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnisvara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnisvara/subscriptions","organizations_url":"https://api.github.com/users/kinnisvara/orgs","repos_url":"https://api.github.com/users/kinnisvara/repos","events_url":"https://api.github.com/users/kinnisvara/events{/privacy}","received_events_url":"https://api.github.com/users/kinnisvara/received_events","type":"Organization","site_admin":false},"repo":{"id":37125333,"name":"RKVR","full_name":"kinnisvara/RKVR","owner":{"login":"kinnisvara","id":12710199,"avatar_url":"https://avatars.githubusercontent.com/u/12710199?v=3","gravatar_id":"","url":"https://api.github.com/users/kinnisvara","html_url":"https://github.com/kinnisvara","followers_url":"https://api.github.com/users/kinnisvara/followers","following_url":"https://api.github.com/users/kinnisvara/following{/other_user}","gists_url":"https://api.github.com/users/kinnisvara/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnisvara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnisvara/subscriptions","organizations_url":"https://api.github.com/users/kinnisvara/orgs","repos_url":"https://api.github.com/users/kinnisvara/repos","events_url":"https://api.github.com/users/kinnisvara/events{/privacy}","received_events_url":"https://api.github.com/users/kinnisvara/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kinnisvara/RKVR","description":"Olemasoleva riigi kinnisvararegistri töötuba","fork":false,"url":"https://api.github.com/repos/kinnisvara/RKVR","forks_url":"https://api.github.com/repos/kinnisvara/RKVR/forks","keys_url":"https://api.github.com/repos/kinnisvara/RKVR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinnisvara/RKVR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinnisvara/RKVR/teams","hooks_url":"https://api.github.com/repos/kinnisvara/RKVR/hooks","issue_events_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/events{/number}","events_url":"https://api.github.com/repos/kinnisvara/RKVR/events","assignees_url":"https://api.github.com/repos/kinnisvara/RKVR/assignees{/user}","branches_url":"https://api.github.com/repos/kinnisvara/RKVR/branches{/branch}","tags_url":"https://api.github.com/repos/kinnisvara/RKVR/tags","blobs_url":"https://api.github.com/repos/kinnisvara/RKVR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinnisvara/RKVR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinnisvara/RKVR/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinnisvara/RKVR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinnisvara/RKVR/statuses/{sha}","languages_url":"https://api.github.com/repos/kinnisvara/RKVR/languages","stargazers_url":"https://api.github.com/repos/kinnisvara/RKVR/stargazers","contributors_url":"https://api.github.com/repos/kinnisvara/RKVR/contributors","subscribers_url":"https://api.github.com/repos/kinnisvara/RKVR/subscribers","subscription_url":"https://api.github.com/repos/kinnisvara/RKVR/subscription","commits_url":"https://api.github.com/repos/kinnisvara/RKVR/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinnisvara/RKVR/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinnisvara/RKVR/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinnisvara/RKVR/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinnisvara/RKVR/contents/{+path}","compare_url":"https://api.github.com/repos/kinnisvara/RKVR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinnisvara/RKVR/merges","archive_url":"https://api.github.com/repos/kinnisvara/RKVR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinnisvara/RKVR/downloads","issues_url":"https://api.github.com/repos/kinnisvara/RKVR/issues{/number}","pulls_url":"https://api.github.com/repos/kinnisvara/RKVR/pulls{/number}","milestones_url":"https://api.github.com/repos/kinnisvara/RKVR/milestones{/number}","notifications_url":"https://api.github.com/repos/kinnisvara/RKVR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinnisvara/RKVR/labels{/name}","releases_url":"https://api.github.com/repos/kinnisvara/RKVR/releases{/id}","deployments_url":"https://api.github.com/repos/kinnisvara/RKVR/deployments","created_at":"2015-06-09T10:20:01Z","updated_at":"2016-01-20T11:41:39Z","pushed_at":"2016-08-19T07:39:41Z","git_url":"git://github.com/kinnisvara/RKVR.git","ssh_url":"git@github.com:kinnisvara/RKVR.git","clone_url":"https://github.com/kinnisvara/RKVR.git","svn_url":"https://github.com/kinnisvara/RKVR","homepage":"https://riigivara.fin.ee/kvr/","size":2977,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":26,"forks":2,"open_issues":26,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33"},"html":{"href":"https://github.com/kinnisvara/RKVR/pull/33"},"issue":{"href":"https://api.github.com/repos/kinnisvara/RKVR/issues/33"},"comments":{"href":"https://api.github.com/repos/kinnisvara/RKVR/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/kinnisvara/RKVR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kinnisvara/RKVR/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/kinnisvara/RKVR/statuses/033500c417403eb9752df7e6664f50e34f33a986"}}}}
{"actor":{"display_login":"tormi"}}