GPathResult res = new XmlSlurper().parseText(xml)
...
...
res.order.children().findAll{it.name() == 'lineItems'}.each{it->
println 'Here I am printing'+ it.id
}
I am using as shown above to iterate all children with name 'lineItems' in GPathResults returned from XmlSlurpur. Even though having lineItems children, it is unable to find those, So not printing anything. pleas suggest.