I have a few elements that I need to remove if they have no value. I want to specify the names (test the name) of the elements in order to remove them. I do not want an across the board sweep to remove all elements without values. How can I remove MyElement, below?
The element could be prefixed with the namespace or not, as follows:
Code:
<ns:MyElement/>
<MyElement/>