Correcting xml parsing