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

david at megginson.com david at megginson.com
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 ")
  startEntityRef("foo")
  characters("entity value")
  endEntityRef("foo")
  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

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

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




More information about the Xml-dev mailing list