FAQ

How do I create an XML feed?

On http://www.cleafs.com/tracker/productsfeed.xsd and http://www.xmlme.com/Validator.aspx you can test your XML feed and check if it is OK according to the terms and conditions of Cleafs

 Example XML productfeed:

<?xml version="1.0" encoding="utf-8"?>
<productFeed>
<product id="54171">
<name>Rock am Ring</name>
<price>269.00</price>
<description>Nurburgring, Nurburg, Germany</description>
<productURL>
http://www.worldticketshop.com/festivals/rock_am_ring_festival_tickets/54171_rock_am_ring_nurburg?utm_source=Cleafs%2BRock am Ring&utm_medium=affiliate-network&utm_campaign=Productfeed
</productURL>
<imageURL>
http://www.worldticketshop.com/images/concerts/festivals/rock_am_ring_festival.jpg
</imageURL>
<additional>
<date>04-06-2010</date>
<time>15.00</time>
<venue>Nurburgring</venue>
<city>Nurburg</city>
<country>Germany</country>
<category>Concerts</category>
<group>Festivals</group>
<shipping>14.95</shipping>
</additional>
</product>

<product id="54174">
<name>Rock im Park Festival</name>
<price>249.00</price>
<description>Zeppelinfeld, Nurnberg, Germany</description>
<productURL>
http://www.worldticketshop.com/festivals/rock_im_park_festival_tickets/54174_rock_im_park_festival_nurnberg?utm_source=Cleafs%2BRock im Park Festival&utm_medium=affiliate-network&utm_campaign=Productfeed
</productURL>
<imageURL>
http://www.worldticketshop.com/images/concerts/festivals/rock_im_park_festival.jpg
</imageURL>
<additional>
<date>04-06-2010</date>
<time>15.00</time>
<venue>Zeppelinfeld</venue>
<city>Nurnberg</city>
<country>Germany</country>
<category>Concerts</category>
<group>Festivals</group>
<shipping>14.95</shipping>
</additional>
</product>
</productFeed>

required tags are: /productFeed, product, name, price /and  /productURL/

For every product you will need to create a unique ID

The /price/ tag needs to be created in cents, without points and commas

Correct Syntax

The following XSD code kan be used to verify the XML file, ensuring it has the correct syntax

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema " elementFormDefault="qualified">
<xs:element name="productFeed">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="product" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="product">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
<xs:element minOccurs="0" ref="price"/>
<xs:element minOccurs="0" ref="description"/>
<xs:element ref="productURL"/>
<xs:element minOccurs="0" ref="imageURL"/>
<xs:element minOccurs="0" ref="additional"/>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="name" type="xs:string"/>
<xs:element name="price" type="xs:float"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="productURL" type="xs:string"/>
<xs:element name="imageURL" type="xs:string"/>
<xs:element name="additional">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

See an example of a working XML feed:
http://www.worldticketshop.com/data/services/cleafsFeed/products_1_group_53.xml


 

 

back

Bekijk Cleafs op LinkedIn

Bekijk Cleafs op FaceBook

Bekijk Cleafs op Twitter

Login
Choose language English English