Name

CDATA

Synopsis

<![CDATA[ ... ]]>

Description

You can define special marked sections of character data, or CDATA, which the XML processor will not attempt to interpret as markup. Anything that is included inside a CDATA marked section is treated as plain text. CDATA marked sections begin with the characters <![CDATA[ and end with the characters ]]>. For example:

<![CDATA[
  I\(asm now discussing the <element> tag of documents
  5 & 6: "Sales" and "Profit and Loss". Luckily, 
  the XML processor won\(ast apply rules of formatting 
  to these sentences!
]]>

Note that you may not use entity references inside a CDATA marked section, as they will not be expanded.

Get XML Pocket Reference 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.