Name
CDATA
Synopsis
<![CDATA[ ... ]]>
You can define special sections of character data, or CDATA, which
the XML processor does not attempt to interpret as markup. Anything
included inside a CDATA section is treated as plain text. CDATA sections
begin with the characters <![CDATA[
and end with
the characters ]]>
. For example:
<![CDATA[ I'm now discussing the <element> tag of documents 5 & 6: "Sales" and "Profit and Loss". Luckily, the XML processor won't apply rules of formatting to these sentences! ]]>
Note that entity references inside a CDATA section will not be expanded.
Get XML Pocket Reference, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.