From: Havoc Pennington (hp@redhat.com)
Date: Fri Sep 15 2000 - 23:36:18 EDT
Hi,
I'm wondering why the parser usually sets the errno in the parse
context _after_ calling the sax->error handler, for example:
if ((ctxt->sax != NULL) &&
(ctxt->sax->error != NULL))
ctxt->sax->error(ctxt->userData,
"Char 0x%X out of allowed range\n",
val);
ctxt->errNo = XML_ERR_INVALID_ENCODING;
ctxt->wellFormed = 0;
ctxt->disableSAX = 1;
So in your error handler, you can't know the errno. It would seem just
as easy to set the errno before calling the handler, then the handler
could know which error occurred.
Also it's pretty problematic that error messages are not
localized; this makes them useless for showing to users, since many
users don't speak English.
Any thoughts on these issues?
Havoc
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Sat Sep 16 2000 - 09:43:11 EDT