mkalboneh
12 years agoOccasional Contributor
Remove xml Node using Groovy Script
Let's say we have the following example XML :
I would like to be able to delete all <ns:color> nodes from a test step request using a groovy script step in soapUI. Any help?
<cars>
<my:car>
<ns:make>Honda</ns:make>
<ns:model>Civic</ns:model>
<ns:year>2012</ns:year>
<ns:paint>
<ns:color>red</ns:color>
<ns:color>blue</ns:color>
<ns:paint>
</my:car>
</cars>
I would like to be able to delete all <ns:color> nodes from a test step request using a groovy script step in soapUI. Any help?