SAX: XML Declaration

David Megginson ak117 at
Sun Apr 19 13:29:06 BST 1998

James Clark writes:

 > > I have avoided providing information about the XML declaration,
 > > considering it strictly a lexical matter; however, since we are
 > > allowing applications to do their own entity resolution, should they
 > > have access to the value of the 'standalone' pseudo-attribute (if
 > > specified)?
 > Definitely not.  In my view the whole idea of having resolveEntity
 > return null to prevent inclusion of entities is a bad one.  There needs
 > to be better control over entity inclusion in SAX, but this is not an
 > effective way to provide it.

I agree entirely with your last point -- in fact, in the most recent
two pre-releases, a return value of null means 'let the parser perform
the default action' rather than 'skip the entity' (it is still
possible for an application to skip an entity by returning an empty
CharacterStream or ByteStream, but that is no longer an
officially-document part of SAX).

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