Пример описание квартиры

Вернуться к описанию XML-формата

 <?xml version="1.0" encoding="UTF-8"?>

<root>

    <offers>

        <offer>

            <id>123456</id>

            <part>жилая</part>

            <object-type>квартира</object-type>

            <description><![CDATA[Просторная, светлая и уютная квартира. Отличный вид из окна, рядом детский сад и школа. Возможна ипотека]]></description>

            <url><![CDATA[http://example.com/myflat.html]]></url>

            <created-at>2014-07-06 00:00:00</created-at>

            <updated-at>2014-11-07 00:00:00</updated-at>

            <images>

                <image primary="1"><![CDATA[http://example.com/img/foto1.jpg]]></image>

                <image primary="0"><![CDATA[http://example.com/img/foto2.jpg]]></image>

                <image primary="0"><![CDATA[http://example.com/img/foto4.jpg]]></image>

                <image primary="0"><![CDATA[http://example.com/img/foto5.jpg]]></image>

            </images>

            <bargain>

                <type>продажа</type>

                <mortgage>да</mortgage>

                <price>

                    <value>62000000</value>

                    <unit>total</unit>

                    <currency>RUR</currency>

                    <period>total</period>

                </price>

            </bargain>

            <seller>

                <phone>1 (234) 567-89-10</phone>

                <extension></extension>

                <name><![CDATA[Иван Иванов]]></name>

                <email><![CDATA[ivan@example.com]]></email>

            </seller>

            <location>

                <country>Россия</country>

                <state>Московская</state>

                <town>Москва</town>

                <town-region>Аэропорт</town-region>

                <district>Северный</district>

                <street>Викторенко</street>

                <house>

                    <number>7</number>

                    <build>1</build>

                    <struct>2</struct>

                </house>

                <latitude>55.798413</latitude>

                <longitude>37.530566</longitude>

                <subway>

                    <name>Аэропорт</name>

                    <distance>5</distance>

                    <distance-type>минут пешком</distance-type>

                </subway>

            </location>

            <floor>

                <total>20</total>

                <current>3</current>

            </floor>

            <area>

                <total>126</total>

                <living>93</living>

                <kitchen>20</kitchen>

            </area>

            <house-info>

                <house-type>панельный</house-type>

                <elevator>нет</elevator>

                <concierge>да</concierge>

                <security>да</security>

                <parking>да</parking>

            </house-info>

            <object-info>

                <rooms>

                    <total>4</total>

                </rooms>

                <ceil-height>3.2</ceil-height>

            </object-info>

        </offer>

    </offers>

</root>

Вернуться к описанию XML-формата