Just work on the part of the list which interest you. Instead of a
depthFirst() traversal as in the previous code I showed, just do
something like:

response.value.*.each {
    // as before
}

Cheers, Paul.
P.S. You would be better off sending your questions to the users
mailing list not the dev one. This list is for discussion about
development of the language/project rather than using Groovy.


On Sun, Aug 14, 2016 at 11:20 PM, GroovyBeginner
<groovybegin...@gmail.com> wrote:
> In this case If I dont specify the value of e in the list. It is not
> appearing in the output.How to get all the child nodes of a parent which is
> present in the arraylist. For example if my list and input has the following
>
>
>
> Since a and b are present in the list and node e is a part of b and g is not
> present in the list, the corresponding xml output should be
>
>
>
>
>
> --
> View this message in context: 
> http://groovy.329449.n5.nabble.com/Iterate-ArrayList-over-XML-Groovy-tp5734628p5734640.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.

Reply via email to