PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error&
PEAR_PackageFile::fromXmlString
(
string
$data
,
int
$state
,
string
$file
,
string|false
$archive
= false
)
parse and return a package.xml object, or a PEAR_Error object upon error.
$data
contents of package.xml file
$state
package state (one of
PEAR_VALIDATE_*
constants)
$file
full path to the package.xml file (and the files it references)
$archive
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.