Adds minimal test for XML datasource
Factorizes exporters code