This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).