Share via


Removing Node Content in the DOM

For node types that inherit from XmlCharacterData, which are the XmlComment, XmlText, XmlCDataSection, XmlWhitespace, and XmlSignificantWhitespace node types, you can remove characters using the DeleteData Method, which removes a range of characters from the node. If you want to remove content completely, you remove the node that contains the content. If you want to keep the node, but the content is incorrect, then modify the content. For information on modifying the content of a node, see Modifying Nodes, Content, and Values in an XML Document.

See Also

XML Document Object Model (DOM)