Re: [xml-dev] Re: SAX - endDocument() confusion again

"Karl Waclawek" <[email protected]> Sat, 28 Feb 2004 10:38:10 -0500
Newsgroups gmane.text.xml.sax.devel,gmane.text.xml.devel
Message-ID <003601c3fe10$dee00120$0207a8c0@karl>
----- Original Message ----- 
From: "Toni Uusitalo" <[email protected]>
To: "Elliotte Rusty Harold" <[email protected]>
Cc: <[email protected]>
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



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel