>> English << | česky | Español | Português | Türkçe | Nederlands | По-русски | Deutsch | Français | Italiano | 中文 | ქართული | Magyar | PolskiZVON > Tutorials > XML Tutorial
>> Example 12 << | Prev | Next | Contents

Description

CDATA sections are used to escape blocks of text containing characters which would otherwise be recognized as markup. CDATA sections begin with the string "<![CDATA[" and end with the string "]]>". The string ']]>' must not occur inside CDATA section.

Well-formed documents


CDATA section :


<example>

     <![CDATA[ <aaa>bb&cc<<<]]>

</example>


Documents with errorsTop


CDATA section must not contain ']]>' :


<example>

     <![CDATA[ <aaa>bb ]]>cc<<<]]>

</example>