XML correcting