Correct XML parsing