Examples

Example 1 : A Job feed with one item

The following is an annotated example of a file with one job in it. Colours relate to the blocks used in the anatomy diagram here.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:jl="http://classifieds.justlanded.com/en/xml/1.0">

These lines are always at the start of your file. You can copy and paste these directly.

<channel>

This line starts the channel declaration.

<title>YourSite.com Jobs Feed</title>
<link>http://www.YourSite.com</link>
<description>YourSite.com Job listings</description>
<jl:language>en</jl:language>
<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>

These lines are required and should be customised for your feed. 

<item>

Starting a new item.

<title>Tax advisor</title>
<description>We need a tax advisor for our office in Madrid, Spain.</description>
<link>http://www.YourSite.com/jobs/taxadvisor</link>
<jl:country>Spain</jl:country>
<jl:city>Madrid</jl:city>
<jl:main_category>Finance & Banking</jl:main_category>
<jl:sub_category>Tax advisors</jl:sub_category>

These lines are requred for all items. 

<jl:images>
  <jl:image_link>http://www.YourSite.com/jobs/taxadvisor.jpg</jl:image_link>
</jl:images>

Jobs can have multiple images. 

<jl:job_type>Full-time</jl:job_type>
<jl:industry>Accountancy</jl:industry>

Required elements for jobs. 

<jl:employer_link>http://www.TheirSite.com</jl:employer_link>
<jl:salary>€40000/year</jl:salary>

Optional elements for jobs. 

</item>

Ending this item.

</channel>
</rss>

Example 2 : A Property feed with one item

The following is an annotated example of a file with one property in it. Colours relate to the blocks used in the anatomy diagram here.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:jl="http://classifieds.justlanded.com/en/xml/1.0">

These lines are always at the start of your file. You can copy and paste these directly.

<channel>

This line starts the channel declaration.

<title>YourSite.com Housing Feed</title>
<link>http://www.YourSite.com</link>
<description>YourSite.com Housing listings</description>
<language>en</language>
<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>

These lines are required and should be customised for your feed.

<item>

Starting a new item.

<title>3 bedroom flat for sale</title>
<description>3 bedroom flat for sale in a really nice neighbourhood.</description>
<link>http://www.YourSite.com/housing/3-bedroom-flat</link>
<jl:country>Spain</jl:country>
<jl:city>Madrid</jl:city>
<jl:main_category>For Sale</jl:main_category>
<jl:sub_category>Apartments</jl:sub_category>

These lines are requred for all items.

<jl:images>
  <jl:image_link>http://www.YourSite.com/housing/3-bedroom-flat.jpg</jl:image_link>
</jl:images>

Housings can have up to 10 images. 

<jl:street_name>Calle Velazquez</jl:street_name>
<jl:street_number>62</jl:street_number>

Optional elements for housing. 

</item>

Ending this item.

</channel>
</rss>

Example 3 : A Property feed with multiple languages

If your data for each item is available in multiple languages it makes sense to provide each of the translations as well. This syntax allows for as many translations as you have available. A container element called jl:content is used to add multiple languages. These containers must declare the language that they are in with a jl:language field as well as any fields that have content in that language. There can be as many jl:content blocks as you have languages.

The following is an annotated example of a file with one property in multiple languages. Colours relate to the blocks used in the anatomy diagram here.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:jl="http://classifieds.justlanded.com/en/xml/1.0">

These lines are always at the start of your file. You can copy and paste these directly.

<channel>

This line starts the channel declaration.

<title>YourSite.com Housing Feed</title>
<link>http://www.YourSite.com</link>
<description>YourSite.com Housing listings</description>
<language>en</language>
<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>

These lines are required and should be customised for your feed.

<item>

Starting a new item.

<jl:country>Spain</jl:country>
<jl:city>Madrid</jl:city>
<jl:main_category>For Sale</jl:main_category>
<jl:sub_category>Apartments</jl:sub_category>

These lines are requred for all items.

<jl:images>
  <jl:image_link>http://www.YourSite.com/housing/3-bedroom-flat.jpg</jl:image_link>
</jl:images>

Housings can have up to 10 images. 

<jl:street_name>Calle Velazquez</jl:street_name>
<jl:street_number>62</jl:street_number>

Optional elements for housing. 

<jl:content>
  <jl:language>ES</jl:language>
  <jl:link>http://www.YourSite.com/spanish/housing/3-bedroom-flat.jpg</jl:link>
  <jl:title>Piso en venta - 3 dormitorios</jl:title>
  <jl:description>Piso con tres dormitorios en un barrio muy bonito.</jl:description>
</jl:content>
<jl:content>
  <jl:language>EN</jl:language>
  <jl:link>http://www.YourSite.com/english/housing/3-bedroom-flat.jpg</jl:link>
  <jl:title>3 Bedroom flat for sale</jl:title>
  <jl:description>3 bedroom flat for sale in a really nice neighbourhood.</jl:description>
</jl:content>

Mutli-lingual elements. 

</item>

Ending this item.

</channel>
</rss>
Comments