updating xml syntax based on current status of patch