[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [xml-dev] PCDATA and CDATA
- From: Michael Fitzgerald <email@example.com>
- To: firstname.lastname@example.org
- Date: Fri, 14 Sep 2001 14:08:08 -0400
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.
<!ELEMENT name (#PCDATA)>
<!ATTLIST name nickname CDATA #IMPLIED>
#IMPLIED means that no default value is provided for the attribute nickname.