Updating xml using dom in java