private function parseFile($file)
    {
        try {
            $dom = XmlUtils::loadFile($file, __DIR__.'/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd');
        } catch (\Exception $e) {
            throw new MappingException($e->getMessage(), $e->getCode(), $e);
        }

        return simplexml_import_dom($dom);
    }
private function parseFile($file)
    {
        try {
            $dom = XmlUtils::loadFile($file, __DIR__.'/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd');
        } catch (\Exception $e) {
            throw new MappingException($e->getMessage(), $e->getCode(), $e);
        }

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

@param string $file Path of file

@return \SimpleXMLElement

@throws MappingException
Parses a XML File .