• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

#PCDATA

 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does #PCDATA mean? How to use it?
Thanks,
Simon
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
PCDATA means Parsed Character Data. It is used in DTDs to describe the type of the XML data. It simply means the specific element contains data that should be parsed by the parser and should not be ignored.
The CDATA on the otherhand tells the parser not to worry about the data. ie., telling it not to parse it.
Here is an example. Consider the XML file

For this XML, if you were to write the DTD, here's how it would look. Note the PCDATA usage -

Hope that helps!

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java2 Platform.
 
reply
    Bookmark Topic Watch Topic
  • New Topic