Hi Rao,
Could you please help me out in another issue. I have attached response xml. in that, i have element named 'id'. there are duplicates in the xml. total 19 are there. i used below to get value of id but not working. i could get the total count value but i am not able to get value of each id. please help. Attaching xml.
import com.eviware.soapui.support.XmlHolder
def response=context.expand('${GAPO_DN#response}')
def xml=new XmlHolder(response)
xml.namespaces["ns"]="
http://harlequins.bt.com/schema/OUKMessages" arr=xml.getNodeValues('//ns:id')
log.info arr.length //getting correct value 19 here
for(int i=1;i<=arr.length;i++){
log.info xml.getNodeValue('//ns:id
') // null is getting displayed
}