XML Export [MJ-504]

All tests pass (minus 'test_referring_site_in_topbar' which Troy is currently looking at).