I am using Ruby Feedparser and keep running into situations when a feed is valid but feedparser throws an exception - REXML::ParseException: Declarations can only occur in the doctype declaration. The following feed does validate at feedvalidator.org (with a warning, but does validate): http://www.engadget.com/rss.xml However, when I run feedparser I get this error: <REXML::ParseException: Declarations can only occur in the doctype declaration. Line: Position: Last 80 unconsumed characters: <![CDATA[<p>Filed under: <a href="http://www.engadget.com/category/gaming/" rel="> /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:325:in `pull'' /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'' /usr/lib/ruby/1.8/rexml/document.rb:178:in `build'' /usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'' /home/eduard/rails/zaptxt/lib/feedparser/feedparser.rb:26:in `parse'' /home/eduard/rails/zaptxt/lib/feedparser/feedparser.rb:18:in `initialize'' Any ideas what I can do? Thanks, eduard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060228/59be1210/attachment.html