reformat xml file