protected function loadRepository($filepath)
	{
		if (!file_exists($filepath))
		{
			throw $this->createRepositoryException($filepath);
		}

		$dom = new DOMDocument;
		$dom->preserveWhiteSpace = false;
		if (!$dom->loadXML(file_get_contents($filepath), LIBXML_NOERROR))
		{
			throw $this->createRepositoryException($filepath);
		}

		return $dom;
	}
protected function loadRepository($filepath)
	{
		if (!file_exists($filepath))
		{
			throw $this->createRepositoryException($filepath);
		}

		$dom = new DOMDocument;
		$dom->preserveWhiteSpace = false;
		if (!$dom->loadXML(file_get_contents($filepath), LIBXML_NOERROR))
		{
			throw $this->createRepositoryException($filepath);
		}

		return $dom;
	}
protected function loadRepository ( $ filepath ) { if ( ! file_exists ( $ filepath ) ) { throw $ this -> createRepositoryException ( $ filepath ) ; } $ dom = new DOMDocument ; $ dom -> preserveWhiteSpace = false ; if ( ! $ dom -> loadXML ( file_get_contents ( $ filepath ) , LIBXML_NOERROR ) ) { throw $ this -> createRepositoryException ( $ filepath ) ; } return $ dom ; }
Load a repository file into a DOMDocument

@param  string $filepath
@return DOMDocument
Load a repository file into a DOMDocument