RSS parser problem

Discussion in 'Ruby' started by peter@rubyrailways.com, Jul 18, 2008.

  1. Guest

    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
    , Jul 18, 2008
    #1
    1. Advertising

  2. Kouhei Sutou Guest

    Hi,

    In <>
    "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::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
    Kouhei Sutou, Jul 18, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    749
    SpaceGirl
    Feb 25, 2005
  2. Motta
    Replies:
    1
    Views:
    518
    Andy Dingley
    Jun 9, 2004
  3. Jake Barnes
    Replies:
    1
    Views:
    419
    Andy Dingley
    Nov 14, 2005
  4. Scott Gordo
    Replies:
    5
    Views:
    693
  5. Jonathan Groll
    Replies:
    1
    Views:
    258
    Kouhei Sutou
    Jun 27, 2009
Loading...

Share This Page