Groovy XML Script for Loops
Hi:
I have an example XML as follows:
<Element>
<row></row>
<row></row>
<row></row>
<row></row>
<row></row>
<row></row>
<row></row>
<row></row>
</Element>
Can someone suggest a syntax to loop around this XML, say from rows 4-6 only?
I have tried a For-each loop, that that seems to iterate thru all rows.
Thx
You could have provided above information for the first time itself. Why doing it in multi-times? Hoping that it is at least provided the nearest sample to the actual values this time.
Here is the script:
https://github.com/nmrao/groovyScripts/blob/master/xml/BuildXmlFromMultipleXmls.groovy
or http://groovyconsole.appspot.com/script/5148948125712384 ==> here you can also "execute script" online
Note you may replace "println" with "log.info" if you want to see the output in soapui.
Output :