mibe / FeedWriter

PHP Universal Feed Generator

Home Page:http://ajaxray.com/blog/php-universal-feed-generator-supports-rss-10-rss-20-and-atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add more xmlns

pontikis opened this issue · comments

It would be useful to add more xmlns. I suggest

this

if($this->version == Feed::RSS2) {
    $out .= '<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">';
}

to become

$out .= '<rss version="2.0"';
$out .= 'xmlns:content="http://purl.org/rss/1.0/modules/content/" ';
$out .= 'xmlns:wfw="http://wellformedweb.org/CommentAPI/" ';
$out .= 'xmlns:dc="http://purl.org/dc/elements/1.1/" ';
$out .= 'xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">';

Great! this is better, of course.