Do you think that this is a valid approach or maybe there is a better one, especially for the removal of elements according to the value of the name attribute of the sibling child-element ?
If you had asked how to remove elements from an XML document, I would have suggested using an XSLT identity transformation plus a template that failed to copy the elements you wanted to remove. And that's what you have there. So yes, I approve.
Besides, it works, right?
Don't listen to Steve. Just read this tiny ad:
Gift giving made easy with the permaculture playing cards