Parse a XML File.
string $file Path of file:
SimpleXMLElement
protected function parseFile($file) {
try {
$dom = XmlUtils::loadFile($file, __DIR__ . '/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd');
} catch (\Exception $e) {
throw new MappingException($e
->getMessage(), $e
->getCode(), $e);
}
return simplexml_import_dom($dom);
}