Changing formatting to XML