src/Sulu/Component/Webspace/Loader/XmlFileLoader10.php
protected function tryLoad($file)
    {
        try {
            return XmlUtils::loadFile($file, __DIR__ . static::SCHEMA_LOCATION);
        } catch (\InvalidArgumentException $e) {
            throw new InvalidWebspaceException(
                sprintf(
                    'Could not parse webspace XML file "%s"',
                    $file
                ),
                null,
                $e
            );
        }
    }
protected function tryLoad($file)
    {
        try {
            return XmlUtils::loadFile($file, __DIR__ . static::SCHEMA_LOCATION);
        } catch (\InvalidArgumentException $e) {
            throw new InvalidWebspaceException(
                sprintf(
                    'Could not parse webspace XML file "%s"',
                    $file
                ),
                null,
                $e
            );
        }
    }
protected function tryLoad ( $ file ) { try { return XmlUtils :: loadFile ( $ file , __DIR__ . static :: SCHEMA_LOCATION ) ; } catch ( \ InvalidArgumentException $ e ) { throw new InvalidWebspaceException ( sprintf ( 'Could not parse webspace XML file "%s"' , $ file ) , null , $ e ) ; } }
Returns xml-doc when one scheme matches.

@param string $file

@return \DOMDocument

@throws InvalidWebspaceException
Returns xml - doc when one scheme matches .