RSS parser problem

Hi,

I am experiencing problems trying to parse an XML feed on Ubuntu - the
same code works without any problems on OS X.

The code is roughly this:

============================================
require ‘open-uri’
require ‘rss’

rss = RSS::Parser.parse(open(url).read, false)

On OS X it works fine. On Ubuntu:

/usr/local/lib/ruby/1.8/rss/parser.rb:474: available XML parser was not
found in [[“rss/xmlparser”, :XMLParserParser], [“rss/xmlscanner”,
:XMLScanParser], [“rss/rexmlparser”, :REXMLParser]].
(RSS::XMLParserNotFound)

Am I missing something?

Cheers,
Peter

Hi,

In [email protected]
“RSS parser problem” on Fri, 18 Jul 2008 15:05:31 +0900,
[email protected] wrote:

/usr/local/lib/ruby/1.8/rss/parser.rb:474: available XML parser was not
found in [[“rss/xmlparser”, :XMLParserParser], [“rss/xmlscanner”,
:XMLScanParser], [“rss/rexmlparser”, :REXMLParser]].
(RSS::XMLParserNotFound)

Does this work?

% ruby -e ‘require “rexml/document”; p REXML::Version’

Thanks,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs