Added export xml function
Merge branch 'exportXml'