XML File Format Specification

FEED REQUIREMENTS

  • The feed must contain only relevant (current) listings.
  • HTML tags are not allowed in the data.
  • The feed URL must be permanent and accessible via the HTTP protocol.

CHARACTER MASKING

The feed must use UTF-8 encoding. As is standard for all XML files, all data values (including URLs) must use entity masking for characters. For further details, refer to the brief description of the XML import file structure.

BRIEF DESCRIPTION OF THE XML IMPORT FILE STRUCTURE:

<announcement>
  <title>Listing title</title>
  <description>Detailed description of the listing</description>
  <email>user@gmail.com</email>
  <region>31</region>
  <city>Kyiv</city>
  <address>Main Square, 5</address>
  <coordinates>50.451099, 30.530300</coordinates>
  <price>1000.00</price>
  <images>
    <image>example.com/files/image1.jpg</image>
    <image>example.com/files/image2.jpg</image>
  </images>
  <user>
    <name>Username</name>
    <phone>123 00 11 11</phone>
    <additional_phone>123 00 22 22</additional_phone>
    <skype>_Skype1_</skype>
  </user>
  <id>1234567890</id>
</announcement>

The main element <code border-box="" font-family:="" menlo="" monaco="" consolas="" courier="" new="" monospace="" font-size:="" 12="" 6px="" padding:="" 2px="" 4px="" color:="" rgb="" 199="" 37="" 78="" background-color:="" 249="" 242="" 244="" border-radius:="">with attachments .

<code border-box="" font-family:="" menlo="" monaco="" consolas="" courier="" new="" monospace="" font-size:="" 12="" 6px="" padding:="" 2px="" 4px="" color:="" rgb="" 199="" 37="" 78="" background-color:="" 249="" 242="" 244="" border-radius:="">contains the following attributes:


id, which can be equal to zero (0), in which case a new advertisement will be created, or greater than zero, in which case the advertisement will be searched for by id in the database, and if found, these advertisements will be updated.
external, which allows you to specify the ID in an external source, which allows you to further update existing ads by the specified ID without being tied to the ID in the project database. This attribute takes the value 0 or 1. If the value 1 is specified, the value of the Id attribute is processed as the ID from the external source.

Other questions in this section
Back to Top