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

Why is xml important?

546


How do I export xml to excel?

525


State and explain about xml encoding errors?

586


Is xml used today?

512


What is the scope of an xml namespace declaration?

670






Can I use rss feeds on my website?

500


What happens if no xml namespace declaration is in scope?

558


What is document object model? Why it is used?

569


What language does xml use?

557


Where can I upload podcasts?

543


What is an xml node?

593


How can I validate an xml document that uses xml namespaces?

539


Does xml replace html?

583


What are the three parts of XSL?

580


How do you create a docx file?

591