XML CDATA section - What is a CDATA section in XML?

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 "]]>
XSL - What is XSL?
XSL - XSL is a language for expressing style sheets. An XSL style sheet is a file that describes the way to display an XML document....
XML XQuery & XPATH - What is XQuery?
XML XQuery & XPATH - Xquery is a query language that is used to retrieve data from XML documents.....
XML - What is XMLA?
XMLA - It is a Microsoft specified XML-messaging-based protocol for exchanging analytical data between client applications and servers...
Post your comment