> > In other words, a DOM builder would be just another an event-based
> > SAX-J application.
>
> I don't think that this model is possible. It would require SAX to support
> all of the information that the DOM needs. That would knock the "Simple"
> right out of SAX.
Not necessarily. A level-one DOM does not require that much, and we
could elect not to deliver certain information (like comments). I am
not suggesting that we deliver the information required for the
XML-specific DTD nodes.
If we omit comments, then SAX-J would have to return only the
following information:
- elements
- attributes
- PIs
- texts
This should be sufficient for building a useful DOM. Strictly by the
book, we specify whether each attribute was specified or defaulted,
and we should specify which text is ignorable whitespace.
All the best,
David
-- David Megginson ak117@freenet.carleton.ca Microstar Software Ltd. dmeggins@microstar.com http://home.sprynet.com/sprynet/dmeggins/xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@ic.ac.uk the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)