Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > RSS parser problem

Reply
Thread Tools

RSS parser problem

 
 
peter@rubyrailways.com
Guest
Posts: n/a
 
      07-18-2008
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:arser.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


 
Reply With Quote
 
 
 
 
Kouhei Sutou
Guest
Posts: n/a
 
      07-18-2008
Hi,

In < ubyrailways.com>
"RSS parser problem" on Fri, 18 Jul 2008 15:05:31 +0900,
wrote:

> The code is roughly this:
>
> ============================================
> require 'open-uri'
> require 'rss'
>
> rss = RSS:arser.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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two ways to generate RSS - rss/maker and rss/2.0 - which is better? Jonathan Groll Ruby 1 06-27-2009 03:53 AM
Post RSS feed w/o RSS-to-Javascript.com Scott Gordo HTML 5 08-29-2006 01:34 AM
is RSS 2.0 still RSS 2.0 if we add our own unique tags to it? Jake Barnes XML 1 11-14-2005 01:54 AM
RSS Feed - need an Idiot's Guide to RSS News on my website teach_me6@hotmail.com HTML 5 02-25-2005 11:01 AM
Searches in multiple RSS feeds -> new rss feed Motta XML 1 06-09-2004 10:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57