CARL Source
Examples of XML exchange files with currencies
System > Data exchanges > Interface > Examples of XML exchange files with currencies

CARL Source offers a certain number of XML interfaces as standard.

A few examples of import files accepted by these interfaces with the currency concept are given below.


These examples illustrate how the currency attribute works and is updated based on the content of files:

Importing skills with the SKILL_IN interface and an XML file and a defined currency

<?xml version='1.0' encoding='UTF-8'?>

<entities actor="DEMO" timezone="Europe/Paris" exchangeInterface="SKILL_OUT">

   <skill>

      <skill_description>Electricity skill with a CHF currency</skill_description>

      <skill_code>ELECTRICITE</skill_code>

      <skill_labourCost>120.0</skill_labourCost>

      <skill_billRate>1.0</skill_billRate>

      <skill_costType>LABOUR</skill_costType>

      <skill_currencyCode>CHF</skill_currencyCode>

   </skill>

</entities>

DESCRIPTION

Importing skills with the SKILL_IN interface and an XML file and an undefined currency

<?xml version='1.0' encoding='UTF-8'?>

<entities actor="DEMO" timezone="Europe/Paris" exchangeInterface="SKILL_OUT">

   <skill>

      <skill_description>Carpentry skill without a currency</skill_description>

      <skill_code>MENUISERIE</skill_code>

      <skill_labourCost>120.0</skill_labourCost>

      <skill_billRate>1.0</skill_billRate>

      <skill_costType>LABOUR</skill_costType>

   </skill>

</entities>

DESCRIPTION

Importing skills with the SKILL_IN interface and an XML file and an undefined currency in the header

<?xml version='1.0' encoding='UTF-8'?>

<entities actor="DEMO" timezone="Europe/Paris" exchangeInterface="SKILL_OUT" currencyCode="USD">

   <skill>

      <skill_description>Painting skill</skill_description>

      <skill_code>PEINTURE</skill_code>

      <skill_labourCost>120.0</skill_labourCost>

      <skill_billRate>1.0</skill_billRate>

      <skill_costType>LABOUR</skill_costType>

      <skill_currencyCode>CHF</skill_currencyCode>

   </skill>

   <skill>   

      <skill_description>Plumbing skill without a currency</skill_description>

      <skill_code>PLOMBERIE</skill_code>

      <skill_labourCost>55.0</skill_labourCost>

      <skill_billRate>1.0</skill_billRate>

      <skill_costType>LABOUR</skill_costType>

   </skill>

</entities>

DESCRIPTION