Improving XML parsing