Displaying Elements as Text : CDATA « Introduction « XML Tutorial






You may not nest CDATA sections.
To write ]]> and you are not closing a CDATA section, the > must be written as >.

<xml_book>
  <tags>
    <appearance>
      <![CDATA[
<animal>
  <name language="Latin">T2</name>
  <project>project1</project>
  <weight>3 points</weight>
</animal>
]]>
    </appearance>
  </tags>
</xml_book>








1.8.CDATA
1.8.1.CDATA sections can tell the XML parser not to parse the text.
1.8.2.Displaying Elements as Text