From: mathew
Date: 2005-11-12T07:22:14+09:00
Subject: Re: RSS::Parser not showing tags
lists wrote:
> I'm playing around with lib/rss and am having difficulty getting
> the tags.
Blatant self-promotion:
require 'rubygems'
require 'syndication/rss'
require 'syndication/content'
require 'open-uri'
url = 'http://docs.info.apple.com/rss/allproducts.rss'
parser = Syndication::RSS::Parser.new
xml = nil
open(url) { |http|
xml = http.read
}
feed = parser.parse(xml)
for i in feed.items
puts i.content_encoded
puts
end
mathew
--
My parents went to the lost kingdom of Hyrule
and all I got was this lousy triforce.