thinking through xml parsing