Re: [xml] question regarding error reporting
- From: Daniel Veillard <veillard redhat com>
- To: Mark Vakoc <thevakoc-xml yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] question regarding error reporting
- Date: Thu, 5 Aug 2004 03:29:16 -0400
On Wed, Aug 04, 2004 at 05:40:25PM -0700, Mark Vakoc wrote:
Hmmm... fprintf isn't a stuctured error handler, but neither is channel. I
believe by the time this segment is reached the search for a structured error
handler to report the message has been exhausted and there doesn't seem to be a
means to use custom structured error handlers within relaxng validation. As
such there seems to be a "information penalty" when when using custom error
handlers and the error domain isn't parsing or validating (those seem to be
handled specially).
So if I understand your explanation correctly the goal is to only call channel
once per xmlRaiseError call unless the handler happens to be fprintf (as such
libxml2 knows that it is not a problem call it repeatedly per call to
__xmlRaiseError)? If so perhaps __xmlRaiseError can instead call
xmlReportError2 that would emulate xmlReportError only building the output to a
string then calling channel just once?
Okay, that part didn't got that much scrutiny, you seem to have a good
view of that code, I take patches :-)
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]