src/XML/DOM/XPathQuery.php
public function loadFile( $fileName )
	{
		if( !file_exists( $fileName ) )
			throw new Exception( 'XML File "'.$fileName.'" is not existing.' );
		$this->document	= new DOMDocument();
		$this->document->load( $fileName );
		$this->xPath	= new DOMXpath( $this->document );
		return true;
	}
public function loadFile( $fileName )
	{
		if( !file_exists( $fileName ) )
			throw new Exception( 'XML File "'.$fileName.'" is not existing.' );
		$this->document	= new DOMDocument();
		$this->document->load( $fileName );
		$this->xPath	= new DOMXpath( $this->document );
		return true;
	}
public function loadFile ( $ fileName ) { if ( ! file_exists ( $ fileName ) ) throw new Exception ( 'XML File "' . $ fileName . '" is not existing.' ) ; $ this -> document = new DOMDocument ( ) ; $ this -> document -> load ( $ fileName ) ; $ this -> xPath = new DOMXpath ( $ this -> document ) ; return true ; }
Loads XML from File.
@access		public
@param		string		$fileName		File Name to load XML from
@return		bool
Loads XML from File .