First version of xml exportation