Update to export data as XML