Hi,
Here is a sample of groovy to set value:
def groovyUtil = new com.eviware.soapui.support.GroovyUtils(context)
def xmlHolder = groovyUtil.getXmlHolder('TestStepName#Response') //change into your test step name
xmlHolder.namespaces['ns1] = 'http://www.xxxx.com' //namespace of node
xmlHolder.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)
}
Thanks,
Aaron