XML-Feed Format für Autos

Dies sind einige einfache Richtlinien für Herstellung der XML Datei, damit Anzeigen aus Ihrer Webseite bei OneKit integriert werden. Wenn Sie weitere Informationen über das XML Format brauchen, können Sie bei Wikipedia nachsehen.

Die XML Datei hat eine "OneKit" Markierung, und ein oder mehrere "Anzeigen" Elemente. Jedes "Anzeigen" Element hat folgende Felder:

  • url: URL der Anzeige auf Ihrer Webseite (erforderlich)
  • title: Titel der Anzeige (erforderlich)
  • content: Inhalt der Anzeige (erforderlich)
  • price: Preis des Autos
  • make: Marke des Autos (erforderlich)
  • model: Modell des Autos (erforderlich)
  • color: Farbe des Autos (optional)
  • year: Jahr des Autos (optional)
  • city: Name der Stadt
  • region: Name der Region/Bundesland (optional)
  • postcode: Postleitzahl (optional)
  • mileage: Kilometerstand des Autos (optional)
  • doors: Türen des Autos (optional)
  • fuel: Kraftstoff (z.B. Benzin, Gas usw) (optional)
  • transmission: Getriebe des Autos (manuell/automatisch) (optional)
  • engine_size: Hubraum in cc. (optional)
  • power: Leistung des Autos (optional)
  • seats: Sitzplätze im Auto (optional)
  • gears: Anzahl der Gänge (optional)
  • pictures: URLs der Bilder für diese Anzeige, siehe Information unten
  • date: Datum der Anzeige in folgendem Format: TT/MM/JJJJ

pictures: das ‘Anzeigen’-Element kann ein Set von ‘Bilder’-Felder enthalten, als einen Teil der ‘Bilder“-Markierungen.
Markierungen jedes ‘Bilds’-Elements sind:

  • title: Titel des Bildes (optional)
  • url: URL des Bildes auf Ihrer Webseite

Die XML-Feed würde so aussehen:

<?xml version=”1.0″ encoding=”utf-8″?>
<onekit>

    <ad>
        <url><![CDATA[...]]></url>
        <title><![CDATA[...]]></title>
        <content><![CDATA[...]]></content>
        <price><![CDATA[...]]></price>
        <make><![CDATA[...]]></make>
        <model><![CDATA[...]]></model>
        <color><![CDATA[...]]></color>
        <year><![CDATA[...]]></year>
        <city><![CDATA[...]]></city>
        <region><![CDATA[...]]></region>
        <postcode><![CDATA[...]]></postcode>
        <mileage><![CDATA[...]]></mileage>
        <doors><![CDATA[...]]></doors>
        <fuel><![CDATA[...]]></fuel>
        <transmission><![CDATA[...]]></transmission>
        <engine_size><![CDATA[...]]></engine_size>
        <power><![CDATA[...]]></power>
        <seats><![CDATA[...]]></seats>
        <gears><![CDATA[...]]></gears>
        <pictures>
            <picture>
                <picture_url><![CDATA[...]]></picture_url>
                <picture_title><![CDATA[...]]></picture_title>
            </picture>
            <picture>
                <picture_url><![CDATA[...]]></picture_url>
                <picture_title><![CDATA[...]]></picture_title>
            </picture>
            …
        </pictures>
        <date><![CDATA[...]]></date>
        <time><![CDATA[...]]></time>
    </ad>

    <ad>
        ….

    </ad>

    <ad>
        ….
    </ad>

    …    

</onekit>

Sie können vorherigen Code kopieren und einfügen, und ihn als Vorlage für Ihre XML Datei benutzen.

XML Feed – BEISPIEL

<?xml version=”1.0″ encoding=”utf-8″?>
<onekit>

    <ad>
            <url><![CDATA[http://www.yourdomain.com/ad/7004578]]></url>
            <title><![CDATA[Audi A3 zum Verkauf, wie neu]]></title>
            <content><![CDATA[Audi A3 zum Verkauf, wie neu, ich verkaufe wegen Umzug in ein anderes Land]]></content>
            <price><![CDATA[20000]]></price>
            <make><![CDATA[Audi]]></make>
            <model><![CDATA[A3]]></model>
            <color><![CDATA[Schwarz]]></color>
            <year><![CDATA[2004]]></year>
            <city><![CDATA[Hamburg]]></city>
            <region><![CDATA[Hamburg]]></region>
            <postcode><![CDATA[20095]]></postcode>
            <mileage><![CDATA[5000]]></mileage>
            <doors><![CDATA[5]]></doors>
            <fuel><![CDATA[Benzin]]></fuel>
            <transmission><![CDATA[manuell]]></region>
            <engine_size><![CDATA[1781]]></engine_size>
            <power><![CDATA[75]]></power>
            <seats><![CDATA[5]]></seats>
            <gears><![CDATA[5]]></gears>
            <pictures>
                <picture>
                    <picture_url><![CDATA[http://www.yourdomain.co.uk/image1.jpg]]></picture_url>
                    <picture_title><![CDATA[front]]></picture_title>
                 </picture>
                 <picture>
                     <picture_url><![CDATA[http://www.yourdomain.co.uk/image2.jpg]]></picture_url>
                     <picture_title><![CDATA[back]]></picture_title>
                 </picture>
             </pictures>
             <date><![CDATA[30/09/2006]]></date>
    </ad>

    <ad>
            <url><![CDATA[http://www.yourdomain.com/ad/332A53BC2]]></url>
            <title><![CDATA[Mercedes SLK zum Verkauf]]></title>
            <content><![CDATA[Mercedes SLK, 50,000 KM, zum Verkauf]]></content>
            <price><![CDATA[30000]]></price>
            <make><![CDATA[Mercedes]]></make>
            <model><![CDATA[SLK]]></model>
            <color><![CDATA[Gray]]></color>
            <year><![CDATA[2001]]></year>
            <city><![CDATA[London]]></city>
            <region><![CDATA[London]]></region>
            <postcode><![CDATA[BR1]]></postcode>
            <pictures>
                <picture>
                    <picture_url><![CDATA[http://www.yourdomain.co.uk/image1.jpg]]></picture_url>
                    <picture_title><![CDATA[front]]></picture_title>
                </picture>
	    </pictures>
               <date><![CDATA[20/09/2006]]></date>
    </ad>

</onekit>