PEAR Manual
Prev |  | Next

# Mail_mimeDecode::getXML()

Mail_mimeDecode::getXML() -- create XML representation of MIME parts

## Synopsis

    require_once 'Mail/mimeDecode.php';

``string getXML` (array $decoded)`

## Description

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/.

## Parameter

- `array $decode` - the array from decode().

## Return value

`string` - the XML document

## Note

This function can be called statically.

## Example

Example 46-1. Create a XML representation
    ...
    $output = $obj->decode();
    $xml    = Mail_mimeDecode::getXML($output);
    ...

Prev | Home | Next
Mail_mimeDecode::uudecode() | Up | Mail_mimeDecode - Example