Removing Nodes from the DOM
To remove a node from the XML Document Object Model (DOM), use the RemoveChild method to remove a specific node. When you remove a node, the method removes the subtree belonging to the node being removed; that is, if it is not a leaf node.
To remove multiple nodes from the DOM, use the RemoveAll method to remove all the children and attributes, if applicable, of the current node.
If you are working with an XmlNamedNodeMap, you can remove a node using the RemoveNamedItem method.
To remove attributes, see Removing Attributes from an Element Node in the DOM.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for