parsing level data from xml files