Dear All:
I am using:
def idx=parent.item.children().indexOf(myElement)
if (idx+1<parent.children().size()) {
def message=parent.children()[idx+1]
println message.text()
}
To find the element message which is next after myelement in the parent.
However, it seems there must be a Groovier way, no?
Thank you Misha