XML feed format for "jobs"

These are some simple guidelines for the creation of a XML file to include ads from your site in Qnaol. If you need more information about the XML format you can check the Wikipedia.

The XML file has one ‘Qnaol’ tag, and one or more ‘ad’ elements. Each ‘ad’ element has the following fields:

  • url: URL of the ad on your website (required)
  • title: job title (required)
  • content: description of the job (required)
  • city: city name
  • region: name of the region/county/state (optional)
  • postcode: postcode (optional)
  • salary: salary (text, can include comments or ranges) (optional)
  • salary_numeric: numeric value of salary (optional). For example, if “salary” is 20,000-30,000, “salary_numeric” could be 25000
  • company: company name (optional)
  • experience: required minimum experience (optional)
  • requirements: other minimum requirements (optional)
  • contract: type of contract (optional)
  • date: date of the ad in the following format: DD/MM/YYYY

The XML feed would look like this:

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

<ad>
    <title><![CDATA[...]]></title>
    <url><![CDATA[...]]></url>
    <content><![CDATA[...]]></content>
    <city><![CDATA[...]]></city>
    <region><![CDATA[...]]></region>
    <postcode><![CDATA[...]]></postcode>
    <salary><![CDATA[...]]></salary>
    <salary_numeric><![CDATA[...]]></salary_numeric>
    <company><![CDATA[...]]></company>
    <experience><![CDATA[...]]></experience>
    <requirements><![CDATA[...]]></requirements>
    <contract><![CDATA[...]]></contract>
    <date><![CDATA[...]]></date>
</ad>

<ad>
    ….

</ad>

<ad>
    ….
</ad>

…

</qnaol>

You can copy and paste the previous code and use it as a template for your XML file


Example XML feed

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

<ad>
    <url><![CDATA[http://www.yourwebsite.com/1876]]></url>
    <title><![CDATA[PHP Developer]]></title>
    <content><![CDATA[
    We are looking for a PHP developer with 2 years of experience.
    Working knowledge of French desired as the website has a French version.
    ]]></content>
    <salary><![CDATA[40.000-60.000GBP (plus bonus)]]></salary>
    <salary_numeric><![CDATA[50000]]></salary_numeric>
    <city><![CDATA[London]]></city>
    <region><![CDATA[London]]></region>
    <postcode><![CDATA[BR1]]></postcode>
    <company><![CDATA[WebCo]]></company>
    <experience><![CDATA[2 years minimum]]></experience>
    <requirements><![CDATA[Working knowledge of French]]></requirements>
    <contract><![CDATA[Full-time]]></contract>
    <date><![CDATA[31/10/2005]]></date>
</ad>

</qnaol>