From: Kouhei Sutou Date: 2009-09-22T08:29:59+09:00 Subject: Re: RSS Parser Help.. Hi, In <8a1c683053d981d86fb3dcea416ca87d@ruby-forum.com> "RSS Parser Help.." on Sat, 19 Sep 2009 09:21:36 +0900, Gim Ick wrote: > I am trying to parse a rss file. I use the rss module to do it. > > Suppose this is the data file, > > > Singapore Airlines Asia Travel - A345 All Business Class to > Asia > Fri, 18 Sep 2009 22:56:33 +0000 > isPermaLink="false">http://delicious.com/url/cc78bfa8bb00f50825d7cac52339375d#galvezcreative > http://a345.singaporeair.com/ > > http://delicious.com/url/cc78bfa8bb00f50825d7cac52339375d > http://feeds.delicious.com/v2/rss/url/cc78bfa8bb00f50825d7cac52339375d > url="http://feeds.delicious.com/v2/rss/galvezcreative">galvezcreative's > bookmarks > domain="http://delicious.com/galvezcreative/">Industry-Airlines > domain="http://delicious.com/galvezcreative/">marketing > > > How do I parse to get value in category( In the above example it is > Industry-Airlines and marketing). rss.items[0].categories.each do |category| p category.content end > When i try rss.items[0].category , I get the entire element( In the > above case, domain="http://delicious.com/galvezcreative/">Industry-Airlines) rss.items[0].category returns Category object not "..." string. (Hint: Category object has #to_s method that returns "..." string) Thanks, -- kou