function toXML() {
        $xml = new SimpleXMLElement("<?xml version=\"1.0\"?><property></property>");

        $xml->addChild("key", $this->key);
        $xml->addChild("value", $this->value);

        return $xml;
    }
function toXML() {
        $xml = new SimpleXMLElement("<?xml version=\"1.0\"?><property></property>");

        $xml->addChild("key", $this->key);
        $xml->addChild("value", $this->value);

        return $xml;
    }
function toXML ( ) { $ xml = new SimpleXMLElement ( "<?xml version=\"1.0\"?><property></property>" ) ; $ xml -> addChild ( "key" , $ this -> key ) ; $ xml -> addChild ( "value" , $ this -> value ) ; return $ xml ; }
Creates the XML representation of an attachment

@return \SimpleXMLElement
Creates the XML representation of an attachment