groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GroovyBeginner <groovybegin...@gmail.com>
Subject Iterate ArrayList over XML Groovy
Date Sun, 14 Aug 2016 02:51:26 GMT
I am iterating an arraylist over xml and creating another xml with the list
of values present in arraylist. Here is the code am using 


This code is working fine for the xml which does not have child nodes How to
get all the child nodes of a parent which is present in the arraylist. For
example if my input is



the corresponding xml output should be
 



Since a and b are present in the list. Kindly suggest the approach to handle
this scenario



--
View this message in context: http://groovy.329449.n5.nabble.com/Iterate-ArrayList-over-XML-Groovy-tp5734628.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message