updated XML parsing methods