Finish xml parsing and change xml encoding