XBRL-TaxonomyPackage.php
public function getFileAsXML( $path )
	{
		try
		{
			$xml = $this->getFile( $this->getActualUri( $path ) );
			isXml( $xml );
			return simplexml_load_string( $xml );
		}
		catch ( Exception $ex )
		{
			throw XBRL_TaxonomyPackageException::withError( "tpe:invalidMetaDataFile", $ex->getMessage() );
		}
	}
public function getFileAsXML( $path )
	{
		try
		{
			$xml = $this->getFile( $this->getActualUri( $path ) );
			isXml( $xml );
			return simplexml_load_string( $xml );
		}
		catch ( Exception $ex )
		{
			throw XBRL_TaxonomyPackageException::withError( "tpe:invalidMetaDataFile", $ex->getMessage() );
		}
	}
public function getFileAsXML ( $ path ) { try { $ xml = $ this -> getFile ( $ this -> getActualUri ( $ path ) ) ; isXml ( $ xml ) ; return simplexml_load_string ( $ xml ) ; } catch ( Exception $ ex ) { throw XBRL_TaxonomyPackageException :: withError ( "tpe:invalidMetaDataFile" , $ ex -> getMessage ( ) ) ; } }
Return the contents of a file given a path
@param string $path
@return SimpleXMLElement
@throws Exception if the requested file does not exist
Return the contents of a file given a path