search for: rssdoc

Displaying 1 result from an estimated 1 matches for "rssdoc".

Did you mean: assoc
2006 Mar 01
1
break in a each function
...n''t this control structure works , when the counter is 10 it has to jump out the iteration greetz Klaas def get_feed2(rssfile) # Open the RSS file rssfeed = open(rssfile.url) # Use the built-in REXML module # Read the entire RSS file into memory rssdoc = Document.new rssfeed.read #Extract some header data about the feed title = rssdoc.elements[''rss/channel/title''].text link = rssdoc.elements[''rss/channel/link''].text counter = 0 # Extract each RSS item rssdoc.elements.each(''rss/ch...