private function loadXML($fname)
{
try {
$fname = $this->config->getCoveragePath() . '/' . $fname;
if (!file_exists($fname)) {
throw new EnricherException(sprintf('PHPLoc xml file "%s" not found.', $fname), EnricherException::LoadError);
}
$dom = new fDOMDocument();
$dom->load($fname);
$dom->registerNamespace('pu', 'http://schema.phpunit.de/coverage/1.0');
return $dom;
} catch (fDOMException $e) {
throw new EnricherException('Parsing PHPLoc xml file failed: ' . $e->getMessage(), EnricherException::LoadError);
}
}