I\'m building a script which has to patch XML files, including replacing one list of elements with another. The following function applies a patch (involving a possibly empt
how about
nodeToBeRemoved.getParentNode().removeChild(nodeToBeRemoved);