def groovyUtil = new com.eviware.soapui.support.GroovyUtils(context)
def xmlHolder = groovyUtil.getXmlHolder('TestStepName#Response') //change into your test step namexmlHolder.namespaces['ns2'] = '
http://www.yyyy.com' //namesapce of node
def val = xmlHolder.getNodeValue('//ns1:Node1/ns2:Node2') //get node value from response
if (val != null){
if(val == "T")
xmlHolder.setNodeValue('//ns1:Node1/ns2:Node2',0) //set node value in response
else
xmlHolder.setNodeValue('//ns1:Node1/ns2:Node2',1)
}[/code]
In response I get ~ 60 elements, but I need to change just one "ownerTypeFromCSDD" and somewhere is a mistake because I get response NULL. And I need the response is integer, not string like it was before.