What is CDATA?

In an XML document, a CDATA section is a section of element content that is marked for the parser to interpret as only character data, not markup.

—-

<sender>John Smith</sender>

Here, the opening and closing “sender” tags are interpreted as markup.

However, if written like this:

<![CDATA[<sender>John Smith</sender>]]> Everything are interpreted as character data (not makrup).

Leave a comment