RE: [xml] Structured error handler not getting called for validation errors
- From: "Parag Chandra" <pchandra slickedit com>
- To: <veillard redhat com>
- Cc: xml gnome org
- Subject: RE: [xml] Structured error handler not getting called for validation errors
- Date: Mon, 25 Oct 2004 09:50:09 -0400
The change I made is on line 454 of error.c:
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) ||
(domain == XML_FROM_DTD) || (domain == XML_FROM_NAMESPACE) ||
(domain == XML_FROM_IO) || (domain == XML_FROM_VALID)) {
Prior to the change, this line simply did not include the "(domain ==
XML_FROM_VALID)" portion. I don't know if this was an oversight or if it
is by design.
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Monday, October 25, 2004 7:47 AM
To: Parag Chandra
Cc: xml gnome org
Subject: Re: [xml] Structured error handler not getting called for
validation errors
On Fri, Oct 22, 2004 at 04:36:08PM -0400, Parag Chandra wrote:
The problem it seems is that inside error.c::__xmlRaiseError(), the
'schannel' variable does not get set because the domain in these
instances is XML_FROM_VALID. I have changed this if statement to
include
this case, and now my error handler gets called appropriately.
What did you change, and how ?
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]