Update new xml funtion