CDATA by any other name... (was The raw and the cooked)

david at david at
Fri Oct 30 16:46:31 GMT 1998

Richard Tobin writes:

 > Note that the XML 1.0 recommendation requires that character and
 > internal entities be expanded before passing the data to the
 > application.

It doesn't forbid the parser from informing the application about what
has been expanded.  In an event-based API, for example, for

  text &foo; text  

the parser could deliver an event stream like

  characters("text ")
  characters("entity value")
  characters(" text")

For normal downstream processing, this level of reporting is simply a
waste of resources, but it could be essential for authoring tools.

All the best,


David Megginson                 david at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list