[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [xml-dev] PCDATA and CDATA
- From: Michael Fitzgerald <mike@wyeast.net>
- To: gordon.stewart@net800.co.uk
- 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