XML DOM createCDATASection() Method

The following code fragment loads "books.xml" into xmlDoc and adds a CDATA section node to the <book> element

Definition and Usage

The createCDATASection() method creates a CDATA section node.

This method returns a CDATASection object.

Syntax

createCDATASection(data)
Parameter Description
data A string that specifies the data for the node

❮ Document Object