Forum Discussion
mkalboneh
12 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
- 2 years ago
- 4 years ago
- 5 years ago
Recent Discussions
- 15 years ago