Export to xml

Ability to export to xml