RSS parser problem

P

peter

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
 
K

Kouhei Sutou

Hi,

In <[email protected]>
"RSS parser problem" on Fri, 18 Jul 2008 15:05:31 +0900,
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)

Does this work?

% ruby -e 'require "rexml/document"; p REXML::Version'


Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top