XML cleanup for Framework activity.