Rearranging xml files