From: Robert Klemme Date: 2011-12-03T01:21:10+09:00 Subject: Re: break from a loop which is run on a xml On Thu, Dec 1, 2011 at 7:02 AM, mythpills P. wrote: > how do i loop through a xml and break when i find the node with a > specific value..really struggling to break out of a xml loop..most of > the iterators just loop but cannot be break - ed Use a proper XPath expression. Other than that I second what Jake said. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/