clean up xml