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 an rss feed podcast?
Where is pom xml?
How do I convert pdf to xml?
What is xml parser function?
Explain in details about the XSL-FO?
What is a schema in word?
Why was xml developed?
What is an xml document?
What is xml tutorial?
What is metadata in excel?
What is an xml map?
What is utf in xml?
what is Identity template in XSL, why do you use it?
How do I set up google rss feed?
What is minoccurs 0 in xsd?