From 1003f2ddd3dd2e5510b56a76f448a45ecca76979 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Sun, 29 Dec 2024 03:35:05 +0000 Subject: [PATCH] Try and figure out some more DOM XML stuff. --- app/src/Feed/FeedGenerator.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/Feed/FeedGenerator.php b/app/src/Feed/FeedGenerator.php index 779cfac..624b205 100644 --- a/app/src/Feed/FeedGenerator.php +++ b/app/src/Feed/FeedGenerator.php @@ -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