cleaning up xml file