David Megginson ak117 at
Mon Dec 29 12:03:42 GMT 1997

Paul Prescod writes:

 > > 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 Megginson                 ak117 at
Microstar Software Ltd.         dmeggins 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