[Home] [By Thread] [By Date] [Recent Entries]

  • From: Michael Fitzgerald <mike@w...>
  • To: gordon.stewart@n...
  • Date: Fri, 14 Sep 2001 14:08:08 -0400

Gordon,

In XML 1.0, #PCDATA can be in a element declaration and specifies that an element will contain parsed character data. Parsing tests whether the characters conform to the lexical constraints imposed by XML 1.0. 

CDATA appears in attribute declarations and specifies that an attribute will contain character data that is not parsed.

Example:

<!ELEMENT name (#PCDATA)>
<!ATTLIST name nickname CDATA #IMPLIED>

#IMPLIED means that no default value is provided for the attribute nickname.

See http://www.w3.org/TR/REC-xml.html.

Mike
=====
http://www.wyeast.net

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member