require_once '/PackageFile.php';
PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& PEAR_PackageFile::fromXmlString (string $data, int $state, string $file, string|false [$archive = FALSE])
PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& PEAR_PackageFile::fromXmlString
parse and return a package.xml object, or a PEAR_Error object upon error.
contents of package.xml file
package state (one of PEAR_VALIDATE_* constants)
full path to the package.xml file (and the files it references)
full path to the full package .tgz file containing the package.xml, or false for none.
throws no exceptions thrown
This function can not be called statically.