The loadXML function should check if the XML file looks like a clover XML file -- that is it contains project and inside, metrics with the right attributes (statements and coveredstatements)
loadXML
project
metrics
statements
coveredstatements