Create a PEAR_PackageFile_v* from an XML string.
public fromXmlString ( string $data, integer $state, string $file, string $archive = false ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | ||
$data | string | contents of package.xml file |
$state | integer | package state (one of PEAR_VALIDATE_* constants) |
$file | string | full path to the package.xml file (and the files it references) |
$archive | string | optional name of the archive that the XML was extracted from, if any |
return | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 |