XMLParser changed to be more testable
XMLParserTest changed