added some XML parsing methods.