[
Lists Home |
Date Index |
Thread Index
]
----- Original Message -----
From: "Toni Uusitalo" <toni.uusitalo@pan.nu>
To: "Elliotte Rusty Harold" <elharo@metalab.unc.edu>
Cc: <xml-dev@lists.xml.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:
<quote>
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.
</quote>
Karl
|