Re: SAX: Document Start and End (question 1 of 10)
Tim Bray (tbray@textuality.com)
Sun, 04 Jan 1998 11:45:49 -0800
At 01:37 PM 04/01/98 -0500, David Megginson wrote:
> > Agreed. Could we change the first method to
> > startDocument(String root, String DTDSysID, String DTDPubID)
> > these obviously each being null in the event the document doesn't
> > provide them? -Tim
>
>This is a great idea, but it will require an implementation to queue
>events. For example, if I have
>
> <?foo bar?>
> <!DOCTYPE doc SYSTEM "doc.dtd">
>
>I have to queue the PI event(s) until I have found the DOCTYPE
Why? The PI is 'before' the doc in any meaningful sense... so they
get some PI events before they get the startDocument event. Is this
a problem? -Tim