Nov 10, 2018

What is a CDATA section in XML?

CDATA stands for character data and has special instruction for XML parsers. Since XML parser parse all text in XML document e.g.
<name>This is name of person</name>
Here even though value of tag <name> will be parsed because it may contain XML tags e.g.
<name><firstname>First Name</firstname></name>
CDATA section is not parsed by XML parser. CDATA section starts with “<![CDATA[" and finishes with "]]>”.