0% found this document useful (0 votes)
16 views

DOM - CDATASection Object

Uploaded by

craf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

DOM - CDATASection Object

Uploaded by

craf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

23/10/2021 16:37 DOM - CDATASection Object

DOM - CDATASection Object

In this chapter, we will study about the XML DOM CDATASection Object. The text present within
an XML document is parsed or unparsed depending on what it is declared. If the text is declared
as Parse Character Data (PCDATA), it is parsed by the parser to convert an XML document into
an XML DOM Object. On the other hand, if the text is declared as the unparsed Character Data
(CDATA) the text within is not parsed by the XML parser. These are not considered as the
markup and will not expand the entities.

The purpose of using the CDATASection object is to escape the blocks of text containing
characters that would otherwise be regarded as markup. "]]>", this is the only delimiter
recognized in a CDATA section that ends the CDATA section.
The CharacterData.data attribute holds the text that is contained by the CDATA section. This
interface inherits the CharatcterData interface through the Text interface.

There are no methods and attributes defined for the CDATASection object. It only directly
implements the Text interface.

https://www.tutorialspoint.com/dom/dom_cdatasection_object.htm 1/1

You might also like