Difference between CDATA and PCDATA in XML ?
Answer Posted / sundaram
PCDATA – parsed character data. It parse/navigates to all
the data/text in an xml document.
Eg:
<name>
<first>prem</first>
<last>kumar</last>
</name>
Here, the name element contains 2 more
elements “first”,”last”. So it parse further to get the
data/text of first and last to give the value of name
as “premkumar”
CDATA – unparsed characted Data. This is the data that
should not be parsed further in an xml document.
<name>
<![CDATA[
<first>prem</first>
<last>kumar</last>
]]>
</name>
Here, the value of name will be
<first>prem</first><last>kumar</last>.
Thanks
sundaram80@rediffmail.com
| Is This Answer Correct ? | 80 Yes | 8 No |
Post New Answer View All Answers
What is XML Signature?
Is xpath a programming language?
What is the difference between xml and excel?
How to use filtering in xslt? : xslt
How is xslt related to xsl?
How do I open an xml file in excel?
What is cdata in xml?
How do I convert an xml file to word?
What is the difference between xml and xls?
What is xml file in android?
How do I create my own document type?
What happens when an xml namespace declaration goes out of scope?
How do I convert pdf to docx?
What is the difference between csv and xml?
Where is my rss feed?