Loads an XML (or HTML) file into a DOMDocument object.
@since Method available since Release 3.3.0
string $filename:
boolean $isHtml:
boolean $xinclude:
DOMDocument
public static function loadFile($filename, $isHtml = FALSE, $xinclude = FALSE) {
$reporting = error_reporting(0);
$contents = file_get_contents($filename);
error_reporting($reporting);
if ($contents === FALSE) {
throw new PHPUnit_Framework_Exception(sprintf('Could not read "%s".', $filename));
}
return self::load($contents, $isHtml, $filename, $xinclude);
}