From: "Richard.Williams.20" Date: 2009-10-06T23:55:07+09:00 Subject: Re: RSS Parser Help.. On Sep 18, 8:21 pm, 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). > > When i try rss.items[0].category , I get the entire element( In the > above case, domain="http://delicious.com/galvezcreative/">Industry-Airlines) > -- > Posted viahttp://www.ruby-forum.com/. Alternate biterscripting script. # Script category.txt var str rss ; cat "file.rss" > $rss while ( { sen -r -c "^^" $rss } > 0 ) do var str category ; stex -r -c "^&^" $rss > $category stex -r -c "^^]" $category > null ; stex -r -c "[^^" $category > null echo $category done For documentation on stex (string extractor) command, see http://www.biterscripting.com/helppages/stex.html Richard