i want to Iterate over Nodes of an XML-File with the XML-Holder.
def reader = groovyUtils.getXmlHolder(test1 );
let's say the XML looks like the following:
<xml>
<node>
<val1/>
<val2/>
</node1>
<node>
<val1/>
<val2/>
</node2>
</xml>
i want to read the values from the different nodes. (val1, val2). So i tried like that:
for( node in reader.getNodeValues( "//ns1:node" ))
{}
It really iterates over the nodes, but i don't know how the get access to the values inside them.
Thanks a lot for your help!
john