Re: [xml] Uuugly warnings - repost
- From: Gianni Mariani <gianni mariani ws>
- To: Gianni Mariani <gianni mariani ws>
- Cc: veillard redhat com, xml gnome org
- Subject: Re: [xml] Uuugly warnings - repost
- Date: Mon, 26 Aug 2002 11:31:28 -0700
Gianni Mariani wrote:
Daniel Veillard wrote:
....
Okay, my guess is the following:
- the library ain't initialized when you overwrite the default
handlers
(purist viewpoint you should use NULL, not 0)
- then you call xmlParseFile()
- the library notes it's not initialized, then call xmlInitParser();
- and the default xmlDefaultSAXHandler.error and warning get
overwritten
try to call xmlInitParser() before resetting the xmlDefaultSAXHandler
fields.
Another way is to reset the default error callback to your own
routine with xmlSetGenericErrorFunc() and make that routine do
nothing (usually trivial ;-)
The statement just above the ones I posted is an xmlInitParser() call. :(
I'll try to override the funtions instead.
Thx
G
OK - overriding seems to work on Linux - I assume it will work the same
way on Win32.
Thanks for your help.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]