Forum Discussion
mkalboneh
11 years agoOccasional Contributor
Just a follow up on this matter:
I was able to use the following groovy code to remove the nodes I want:
I think the issue I ran into was trying to remove nodes from the xmlSlurper object which does not allow for removing nodes.
Hope this will help.
I was able to use the following groovy code to remove the nodes I want:
// get XmlHolder for request
def reqHolder = groovyUtils.getXmlHolder( "TestStepName#Request" )
// Remove all <<ns:color>> nodes from the TestStep request
reqHolder.removeDomNodes("//<ns:color>")
I think the issue I ran into was trying to remove nodes from the xmlSlurper object which does not allow for removing nodes.
Hope this will help.
Related Content
Recent Discussions
- 2 days agoemoya
- 2 days agoMyBalanceNow