CDATA Object
The insertData() method inserts data to a CDATA node.
| Parameter | Description |
|---|---|
| start | Required. Specifies where to begin inserting characters. Start value starts at zero |
| string | Required. Specifies the data to insert |
The following code fragment loads "books_cdata.xml" into xmlDoc using loadXMLDoc() and inserts data into the CDATA node of the first <html> element:
Output:
CDATA Object
Your message has been sent to W3Schools.