Reformatting of xml file