Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do I open an xml file in notepad ++?

832


What is Extensible Markup Language?

838


Can we do sorting in XSL ? how do you deal sorting columns dynamically in XML.

2747


Why should we go for xml editor instead of notepad?

870


What is xpointer in xml?

797


Does the scope of an xml namespace declaration include the element it is declared on?

790


Do I have to know html or sgml before I learn xml?

730


Why rss feed is important?

869


Is wsdl and xsd same?

792


How does stylesheet effects the overall template?

856


What is the difference between versions 1.0 and 1.1 of the xml namspaces recommendation?

813


How do I subscribe to rss feeds?

799


What is dom? What is it used for?

864


What is excel xml map?

796


what is XLink and XPointer ?

2389