Try and figure out some more DOM XML stuff.

This commit is contained in:
Dave Smith-Hayes 2024-12-29 03:35:05 +00:00
parent 5b0cef92ba
commit 1003f2ddd3

View File

@ -22,7 +22,14 @@ class FeedGenerator implements FeedGeneratorInterface
{
$this->document = new DOMDocument();
$rss = $this->document->createElement("rss");
$rss->setAttribute('version', "2.0");
$rss->setAttributeNS('xmlns', "atom", self::XMLNS_ATOM);
}
public function getRssElement(): DOMElement
{
$rss = $this->document->createElement("rss");
$rss->setAttribute('version', "2.0");
}
public function generate(Channel $channel): DOMDocument