OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ 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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS