english/libraries/joomla/installer/packagemanifest.php
/**
	 * Load a manifest from an XML file
	 *
	 * @param   string  $xmlpath	Path to XML manifest file
	 *
	 * @return  boolean	Result of load
	 * @since   11.1
	 */
Load a manifest from an XML file
@param   string  $xmlpath    Path to XML manifest file

@return  boolean     Result of load
@since   11.1
Load a manifest from an XML file @param string $xmlpath Path to XML manifest file @return boolean Result of load @since 11 . 1
function loadManifestFromXML($xmlfile)
	{
		$this->manifest_file = JFile::stripExt(basename($xmlfile));
		$xml = JFactory::getXML($xmlfile);
		if( ! $xml) {
			$this->_errors[] = JText::sprintf('JLIB_INSTALLER_ERROR_LOAD_XML', $xmlfile);
			return false;
		}
		else {
			$this->name			= (string) $xml->name;
			$this->packagename	= (string) $xml->packagename;
			$this->update		= (string) $xml->update;
			$this->authorurl	= (string) $xml->authorUrl;
			$this->author		= (string) $xml->author;
			$this->authoremail	= (string) $xml->authorEmail;
			$this->description	= (string) $xml->description;
			$this->packager		= (string) $xml->packager;
			$this->packagerurl	= (string) $xml->packagerurl;
			$this->version		= (string) $xml->version;
			if (isset($xml->files->file) && count($xml->files->file)) {
				foreach ($xml->files->file as $file)
				{
					$this->filelist[] = new JExtension($file);
				}
			}
			return true;
		}
	}
function loadManifestFromXML ( $ xmlfile ) { $ this -> manifest_file = JFile :: stripExt ( basename ( $ xmlfile ) ) ; $ xml = JFactory :: getXML ( $ xmlfile ) ; if ( ! $ xml ) { $ this -> _errors [ ] = JText :: sprintf ( 'JLIB_INSTALLER_ERROR_LOAD_XML' , $ xmlfile ) ; return false ; } else { $ this -> name = ( string ) $ xml -> name ; $ this -> packagename = ( string ) $ xml -> packagename ; $ this -> update = ( string ) $ xml -> update ; $ this -> authorurl = ( string ) $ xml -> authorUrl ; $ this -> author = ( string ) $ xml -> author ; $ this -> authoremail = ( string ) $ xml -> authorEmail ; $ this -> description = ( string ) $ xml -> description ; $ this -> packager = ( string ) $ xml -> packager ; $ this -> packagerurl = ( string ) $ xml -> packagerurl ; $ this -> version = ( string ) $ xml -> version ; if ( isset ( $ xml -> files -> file ) && count ( $ xml -> files -> file ) ) { foreach ( $ xml -> files -> file as $ file ) { $ this -> filelist [ ] = new JExtension ( $ file ) ; } } return true ; } }
Load a manifest from an XML file
 @param   string  $xmlpath    Path to XML manifest file
Load a manifest from an XML file @param string $xmlpath Path to XML manifest file
// NOTE: JExtension doesn't expect a string. // DO NOT CAST $file