What is a CDATA section in XML?
CDATA - (Unparsed) Character Data
- The term CDATA is used when you dont want some text data to be parsed by the XML parser.
- A CDATA section starts with
"<![CDATA[" and ends with "]]>":What is a CDATA section in XML?
- The CDATA section of XML is used to describe the text that should not be parsed by the XML parser.
- The characters like "<" ">" are not supported in XML.
- "<" will cause an error by the parser. Because the parser identifies < as the starting character for an element.
- Any text that is included in CDATA section is ignored by the parser.
Example :<![CDATA[" < and > are used to enclose an element in XML "]]>