Hi,
Custom groovy solutions are not part of are support agreement as a FYI.
You can try to use the XMLObject api to set the value to nil.
http://xmlbeans.apache.org/docs/2.0.0/r ... bject.htmlExample:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder(context.httpResponse.responseContent)
def xmlObj = holder.getXmlObject(); //this will return org.apache.xmlbeans.XmlObject
def addressType = xmlObj.selectPath(
"declare namespace xmlns:i='http://www.w3.org/2001/XMLSchema-instance' p='http://schemas.datacontract.org/2004/07/nConnect.Resources.PlayerInfo.Entities' " +
"//p:PlayerInfo/p:Address/p:AddressType")
addressType[0].setNil()
def holderNew = new XmlHolder( xmlObj.set(addressType[0]) ) //returns a new XmlHolder with value set to nil
Regards,
Marcus
SmartBear Support