Try and figure out some more DOM XML stuff.
This commit is contained in:
parent
5b0cef92ba
commit
1003f2ddd3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user