Share via


Removing Nodes, Content, and Values from an XML Document

Once an XML Document Object Model (DOM) is in memory, you can remove nodes from the tree, or remove content and values from certain node types. For information on how to remove a leaf node or entire node subtree from a document, see Removing Nodes from the DOM. For information on how to remove attributes on an element, see Removing Attributes from an Element Node in the DOM. For information on removing content of a node but leaving the node in the tree, see Removing Node Content in the DOM.

See Also

Concepts

XML Document Object Model (DOM)

Inserting Nodes into an XML Document

Modifying Nodes, Content, and Values in an XML Document