Easy Tutorial
❮ Dom Document Met Node Lookupprefix ❯

XML DOM deleteData() Method



Definition and Usage

The deleteData() method removes data from a CDATA node.

Syntax

Parameter Description
start Required. Specifies where to start deleting data. The starting value is 0.
length Required. Specifies how many characters to delete.

Example

The following code snippet uses loadXMLDoc() to load "books_cdata.xml" into xmlDoc and removes some characters (the "<b>" tag) from the text node of the first <html> element:

Example

Output:


❮ Dom Document Met Node Lookupprefix ❯