The CDATASection interface contains methods and properties that apply to character data sections.

The nodeType value is 4.

XML CDATA interface methods and properties

Name Description
appendData() Method that appends data to the end of CDATA.
data Property that sets or returns the text of CDATA.
deleteData() Method that deletes data from a CDATA section.
insertData() Method that inserts data to a CDATA section.
length Property that returns the length of CDATA section.
replaceData() Method that replaces data in a CDATA section.
splitText() Method that splits a CDATA section into two nodes.
substringData() Method that returns string data from a CDATA section.