updated the update command to use XML