Lists Home |
Date Index |
----- Original Message -----
From: "Toni Uusitalo" <email@example.com>
To: "Elliotte Rusty Harold" <firstname.lastname@example.org>
Sent: Saturday, February 28, 2004 5:03 AM
> I decided not to call startDocument/endDocument-pair when BOM or XML
> declaration or setting forced encoding fails. Reason for this was I wanted
> document's actual encoding to be known at the startDocument stage (as there
> isn't necessarily xml declaration present of course). Then again I'm
> talking about my SAX C library Parsifal which is far away from "official"
> SAX java implementations.
Good point. However, the docs say this:
Note that the locator will return correct information only during the invocation
SAX event callbacks after startDocument returns and before endDocument is called.
The application should not attempt to use it at any other time.