In Groovy, I want to delete a specific child node, but not all the child nodes.
Here is some example XML:
<A>
<q>hello</q>
<w>world</w>
<e>again</e>
</A>
How do I delete the node and it's content/attributes (if any)?
I've tried with the .replaceBody method on the node, but child nodes aren't considered part of the body of the parent node.