From: Kouhei Sutou Date: 2005-11-05T23:20:01+09:00 Subject: Re: RSS::Parser not showing tags Hi, In <1F05126C-6042-4B20-A8C0-47F250582D48@kalama.no-ip.org> "RSS::Parser not showing tags" on Sat, 5 Nov 2005 12:26:22 +0900, lists wrote: > I'm playing around with lib/rss and am having difficulty getting the > tags. Here's what I mean: Sorry, RSS Parser doesn't support RSS 2.0 with content module. Because I can't find the specification of RSS 2.0 with content module. > Any > ideas what I need to do to be able to get @content in the > RSS::Rss::Channel::Item object? The followiong code will help you: > ### > require 'rss/2.0' > require 'rss/content' > require 'open-uri' module RSS class Rss install_ns(CONTENT_PREFIX, CONTENT_URI) class Channel class Item; include ContentModel; end end end end > feed = 'http://docs.info.apple.com/rss/allproducts.rss' > > open(feed) { |http| > rss = RSS::Parser.parse(http.read, false) > p rss.items[1] > } > ### Thanks, -- kou