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 <61924.122.167.94.12.1216361430.squirrel@webmail.rubyrailways.com>
"RSS parser problem" on Fri, 18 Jul 2008 15:05:31 +0900,
···
peter@rubyrailways.com wrote:
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,
--
kou