<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<!--
/**
 * Rc broker ws produkto #189 parametru XSD failas
 * @author A.Krikščiūnas, a.kriksciunas@registrucentras.lt
 * @version V.1806-28
 */
-->

    <xs:element name="args">
        <xs:annotation><xs:documentation>parametrai NTR objektų paieškai pagal adresą (veiksmo_tipas=189)</xs:documentation></xs:annotation>
        <xs:complexType mixed="true">
            <xs:choice maxOccurs="unbounded">

                <xs:element name="adm_id" type="xs:long" minOccurs="0" maxOccurs="1" nillable="true">
                    <xs:annotation><xs:documentation>adm. vieneto ID adresų registre</xs:documentation></xs:annotation>
                </xs:element>

                <xs:element name="gyv_id" type="xs:long" minOccurs="0" maxOccurs="1" nillable="true">
                    <xs:annotation><xs:documentation>gyv. vietovės ID adresų registre</xs:documentation></xs:annotation>
                </xs:element>

                <xs:element name="gat_id" type="xs:long" minOccurs="0" maxOccurs="1" nillable="true">
                    <xs:annotation><xs:documentation>gatvės ID adresų registre</xs:documentation></xs:annotation>
                </xs:element>

                <xs:element name="namo_nr" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true">
                    <xs:annotation><xs:documentation>NT objekto namo nr</xs:documentation></xs:annotation>
                </xs:element>

                <xs:element name="korp_nr" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true">
                    <xs:annotation><xs:documentation>NT korpuso nr</xs:documentation></xs:annotation>
                </xs:element>

                <xs:element name="buto_nr" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true">
                    <xs:annotation><xs:documentation>NT objekto buto nr</xs:documentation></xs:annotation>
                </xs:element>

		<xs:element name="fmt" minOccurs="1" maxOccurs="1">
		  <xs:simpleType>
		    <xs:restriction base="xs:string">
		      <xs:enumeration value="xml"/>
		    </xs:restriction>
		  </xs:simpleType>
		</xs:element>

            </xs:choice>
        </xs:complexType>
    </xs:element>


</xs:schema>
