What is CDATA Section.

Answer Posted / praveen

CDATA stands for character data.

To include an XML document in an XML document, CDATA
sections are used. And also to escape the angle brackets and
ampersands.

CDATA sections are delimited by ?<![CDATA[? and ?]]>?.

The XML parser ignores delimiters within the CDATA section,
except for ]]>

The following example uses a CDATA section to insert an XML
example

into an XML document.
<?xml version=?1.0??>
<example>
<![CDATA[
<?xml version=?1.0??>
<entry>
<name>yourname</name>
<email href=?mailto:name@yoursite.com?/>
</entry>]]>
</example>

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the xslt? : xslt

459


Can xml be used as a database?

459


state some disadvantages of xml?

502


What is xml sql?

479


What are the basic rules to write xml document?

523






How do I change a text file to xml?

466


Is there any way that html can be replaced with xml?

474


What does xml stands for?

474


How do I remove xml from excel?

463


How do I display an rss feed on my website?

465


Do you know why we use select="@|node()" in the element on Identity template? What will happen if we use without select attribute?

497


What is a smart document?

506


What importance does xslt hold in xml?

479


Is xml a web service?

488


What is text () in xpath?

472