Reformating xml file