PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'Mail/mimeDecode.php';
string getXML (array $decoded)
string getXML
getXML() converts the returned array from decode () into a valid XML document. The DTD for this document is avaible from the Mail_MimeDecode-Package or http://www.phpguru.org/xmail/.
array $decode - the array from decode().
string - the XML document
This function can be called statically.
Example 45-1. Create a XML representation
... $output = $obj->decode(); $xml = Mail_mimeDecode::getXML($output); ...