update XML procedure