OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xml-dev] PCDATA and CDATA



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