src/Sulu/Bundle/MediaBundle/Media/FormatLoader/BaseXmlFormatLoader.php
private function tryLoad($file)
    {
        try {
            return XmlUtils::loadFile($file, __DIR__ . static::SCHEME_PATH);
        } catch (\InvalidArgumentException $e) {
            throw new InvalidMediaFormatException(
                sprintf('Could not parse image formats XML file "%s"', $file),
                null,
                $e
            );
        }
    }
private function tryLoad($file)
    {
        try {
            return XmlUtils::loadFile($file, __DIR__ . static::SCHEME_PATH);
        } catch (\InvalidArgumentException $e) {
            throw new InvalidMediaFormatException(
                sprintf('Could not parse image formats XML file "%s"', $file),
                null,
                $e
            );
        }
    }
private function tryLoad ( $ file ) { try { return XmlUtils :: loadFile ( $ file , __DIR__ . static :: SCHEME_PATH ) ; } catch ( \ InvalidArgumentException $ e ) { throw new InvalidMediaFormatException ( sprintf ( 'Could not parse image formats XML file "%s"' , $ file ) , null , $ e ) ; } }
Tries to load the DOM Document of a given image formats xml.

@param $file string The path to the xml file

@return \DOMDocument

@throws InvalidMediaFormatException
Tries to load the DOM Document of a given image formats xml .