Displaying Elements as Text : CDATA « Introduction « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » Introduction » CDATA 
1.8.2.Displaying Elements as Text
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>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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.