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