Re: [xml] Uuugly warnings - repost

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.


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]