modified XmlParser to return a list of alerts