Thanks for the response ashchow ,
I followed your suggested step, but i dont know why that is not working for me , so i was trying with below groovy....
def holder = groovyUtils.getXmlHolder( TStp.testRequest.requestContent )
use (groovy.xml.dom.DOMCategory) {
for( node2 in holder.getDomNodes( "//soapenv:Body" )) {
node2.depthFirst().each { child ->
if(child.text()==""){
removeList.add(child.nodeName)
}
}
for(node in removeList){
holder.removeDomNodes("//"+node)
}
}
}
This removes the nodes which are not mandatory , but will not remove the nodes which are empty and mandatory , to remove empty mandatory i have run this script multiple time ,is is possible to some how this code is tuned to remove all the nodes irrespective of mandatory or not in single shot
Regards
Patil86