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
Can I (and my authors) still use client-side inclusions?
How do I convert xml to pdf?
What is an xml node?
What is cdata section in xml?
How do I create an xml map in excel?
What is xml and its benefits?
Describe xpath.
Can word open xml files?
How do I subscribe to an rss feed on my iphone?
Why namespace is used in xml?
How do I run an xsl file in eclipse?
How can I declare xml namespaces so that all elements and attributes are in their scope?
What is axml file?
Do rss feeds help seo?
What is the use of xslt