correcting xml parsings