Midterm: XML parsing