title: Groovier way to find next XmlSlurper element in parent?
body: <p>I am using:</p>
  
  <pre><code>def idx=parent.item.children().indexOf(myElement)
  if (idx+1&lt;parent.children().size()) {
    def message=parent.children()[idx+1]
    println message.text()
  }
  </code></pre>
  
  <p>To find the element message which is next after myelement in the parent.</p>
  
  <p>However, it seems there must be a Groovier way, no?</p>
  
  <p>Thank you
  Misha</p>