return '';
}
- $dom = new DomDocument();
+ $dom = new DOMDocument();
$enc = $dom->createElement('enclosure');
$enc->setAttribute('url', $url_info['url']);
$enc->setAttribute('length', $url_info['download_content_length']);
$enc->setAttribute('type', $url_info['content_type']);
- $dom->appendChild($enc);
-
- return $dom->saveXML($enc);
+ return $enc;
}
/**