2amigos / efeed

Feed Writer Generator Extension (RSS 1.0, RSS 2.0, and ATOM 1.0)
12 stars 9 forks source link

Example has errors #1

Open balrok opened 11 years ago

balrok commented 11 years ago

Hello, in your example you write: $feed->addChannelTag('atom:link','http://www.ramirezcobos.com/rss/'); which produces an xml parsing error because the atom namespace isn't set. I've compared it with wordpress and their rss2.0 always has the atom namespace set.

So I would fix it by adding: "xmlns:atom"=>"http://www.w3.org/2005/Atom", into Efeed.php line 315

Thanks for your work, your extension was easy to implement and use :)

tonydspaniard commented 9 years ago

What about this? https://github.com/2amigos/efeed/blob/master/EFeed.php#L329