|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: [Sax-devel] SAX - endDocument() confusion again
At 16:38 29.2.2004, you wrote: >Maybe the best approach would be to re-define startDocument >to pass encoding and XML version (and maybe the standalone value) >for the document entity, and to re-define LexicalHandler.startEntity >to pass the encoding and version for the entity, if external. Yes. That could actually be the cleanest/most intuitive solution - compared to XMLDecl handler that would always report encoding and version (something like Jeff Rafter suggested). Maybe startDocument should pass the label (i.e. encoding="some") if present (labels would have the highest priority - otherwise bom specified or default encoding - but always some values, no NULLs) and same for startEntity. Maybe the byte order info should be there too. >That would mean that Locator2 is not necessary. > >Of course, signature changes are not backwards compatible. >Just thinking out loud. Back to reality ;-) , I guess changing startDocument signature wouldn't be to everyone's liking. with respect, Toni Uusitalo
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








