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 ?

Answers were Sorted based on User's Feedback



Difference between CDATA and PCDATA in XML ?..

Answer / 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

Difference between CDATA and PCDATA in XML ?..

Answer / sridhar

PCDATA - Parsed Character Data means the XML Parser examins
the data whether the value/text contains entity or not if
it is then it will be replaced for example < should be
given as &lt;

Where as CDATA means The XML parser will not validate
value/text inside the CDATA tag. It is useful for passing
value/text directly to the required application as it is.

Is This Answer Correct ?    60 Yes 12 No

Post New Answer

More XML XSLT RSS Interview Questions

How do you display xml with xslt?

0 Answers  


How much does it cost to publish a podcast?

0 Answers  


What are various advantages of utilizing xslt?

0 Answers  


How do I use xml namespaces with dom level 2?

0 Answers  


Difference Between Element and Node.

2 Answers   ABC,


What are the different formatting objects in xsl-fo are categorized into?

0 Answers  


Can xml be used as a database?

0 Answers  


What's xlink?

0 Answers  


Which is a language for finding information in an xml document?

0 Answers  


I keep hearing about alternatives to dtds. What’s a schema?

0 Answers  


Can I use an attribute default in a dtd to declare an xml namespace?

0 Answers  


How many types of xpath are there?

0 Answers  


Categories