# XML example for certificate importation

This is an example file and this data can't be imported on your platform. The user id must correspond to users existing on your platform.
The date and offical_code fiels aren't mandatory and can be omitted without any error. If you want to overwrite the scores, you must choose the "Overwrite score" option.

## Complete XML score importation file

<?xml version="1.0" encoding="ISO-8859-1"?>

<XMLResults>

<Result>

<username>bgate</username>

<official_code>bgate</official_code>

<lastname>Gate</lastname>

<firstname>Bill</firstname>

<score>2</score>

<date>2009-2-25 12:28</date>

</Result>

<Result>

<username>ltorvald</username>

<official_code>ltorvald</official_code>

<lastname>Torvald</lastname>

<firstname>Linus</firstname>

<score>10</score>

<date>2009-2-25 12:28</date>

</Result>

<Result>

<username>jsmith</username>

<official_code></official_code>

<lastname>Smith</lastname>

<firstname>John</firstname>

<score>3</score>

<date></date>

</Result>

</XMLResults>

## Minimal XML score importation file

This is possible to use a minimal file if you choose the "Ingnore error option" :

<?xml version="1.0" encoding="ISO-8859-1"?>

<XMLResults>

<Result>

<username>bgate</username>

<score>2</score>

</Result>

<Result>

<username>ltorvald</username>

<score>10</score>

</Result>

<Result>

<username>jsmith</username>

<score>3</score>

</Result>

</XMLResults>

## Complete XML presence importation file

For the presence this is the same file except the score fied which is "0" for absent and "1" for present :

<?xml version="1.0" encoding="ISO-8859-1"?>

<XMLResults>

<Result>

<username>bgate</username>

<official_code>bgate</official_code>

<lastname>Gate</lastname>

<firstname>Bill</firstname>

<score>0</score>

<date>2009-2-25 12:28</date>

</Result>

<Result>

<username>ltorvald</username>

<official_code>ltorvald</official_code>

<lastname>Torvald</lastname>

<firstname>Linus</firstname>

<score>1</score>

<date>2009-2-25 12:28</date>

</Result>

<Result>

<username>jsmith</username>

<official_code></official_code>

<lastname>Smith</lastname>

<firstname>John</firstname>

<score>0</score>

<date></date>

</Result>

</XMLResults>

You could also use a minimal XML file for the presence.