C’est un exemple de le création du fichier XML pour l’inclure à OneKit. S’il vous faut plus d’information concernant le format XML vous pouvez vous servir Wikipedia.
Fichier XML contient un ‘OneKit’ tag et un ou quelques éléments ‘ad’. Chacun d’élément ‘ad’ contient des champs suivants:
photo: cet élément ‘ad’ doit contenir un ensemble de champs ‘picture’ tag coeur ‘pictures’.
Chaque élément de balise ‘picture’ est:
XML devrait ressembler à ceci:
<?xml version=”1.0″ encoding=”utf-8″?>
<onekit>
<ad>
<url><![CDATA[http://www.yourdomain.com/ad/7004578]]></url>
<title><![CDATA[Chelsea Gate, London, SW1W]]></title>
<type><![CDATA[For rent]]></type>
<agency><![CDATA[Agencia Inmobiliaria]]></agency>
<content><![CDATA[A very spacious three bedroom flat
on a modern development]]></content>
<price><![CDATA[800]]></price>
<house_type><![CDATA[Flat]]></house_type>
<floor_area><![CDATA[300]]></floor_area>
<bedrooms><![CDATA[3]]></bedrooms>
<bathrooms><![CDATA[1]]></bathrooms>
<parking><![CDATA[0]]></parking>
<address><![CDATA[]]></address>
<city><![CDATA[London]]></city>
<region><![CDATA[London]]></region>
<postcode><![CDATA[BR1]]></postcode>
<latitude><![CDATA[51.496401]]></latitude>
<longitude><![CDATA[-0.179]]></longitude>
<pictures>
<picture>
<picture_url><![CDATA[http://www.yourdomain.co.uk/image.jpg]]></picture_url>
<picture_title><![CDATA[living room]]></picture_title>
</picture>
</pictures>
<date><![CDATA[31/10/2005]]></date>
</ad>
<ad>
<url><![CDATA[http://www.yourdomain.com/ad/332A53BC2]]></url>
<title><![CDATA[Brand new flat in Shadwell, London]]></title>
<type><![CDATA[For sale]]></type>
<content><![CDATA[A brand new flat, located on the third floor
of a sought after apartment building]]></content>
<price><![CDATA[209950]]></price>
<address><![CDATA[]]></address>
<city><![CDATA[London]]></city>
<region><![CDATA[London]]></region>
<postcode><![CDATA[BR1]]></postcode>
<pictures>
<picture>
<picture_url><![CDATA[http://www.yourdomain.co.uk/image.jpg]]></picture_url>
<picture_title><![CDATA[living room]]></picture_title>
</picture>
</pictures>
<date><![CDATA[31/10/2005]]></date>
</ad>
</onekit>