From: Robert Klemme Date: 2011-12-07T19:46:20+09:00 Subject: Re: break from a loop which is run on a xml On Wed, Dec 7, 2011 at 7:59 AM, mythpills P. wrote: > sorry guys..its company code cannot make it public. Then strip it down / change it to a simple case which shows the problem you are trying to solve. http://sscce.org/ > neways i figured out > a way out by using arrays and running a for loop over it..works just the > way i wanted Chances are that using doc#at_xpath with Nokogiri is simpler than what you built. > wish there was a obvious way to do things in Ruby..its concise but it is > cumbersome I think there is an obvious way (using XPath to select exactly the nodes you want) but without you showing a proper example we cannot show it to you. I find it a tad unfair to blame Ruby when you are not providing proper information. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/