Re: [xml] when to call initGenericErrorDefaultFunc()



Hi there,

On Tuesday, October 22, 2002, at 03:11 PM, Stefan Kost wrote:


Daniel, would it be possible to add a page to xmlsoft.org like "Memory Management" etc. which describes how to properly intercept error messages.

This is exactly where I had difficulties too. I wanted to intercept the messages to display them in a GUI (OS X / Cocoa in my case).

I register my handler like this:

xsltSetGenericErrorFunc(self, (xmlGenericErrorFunc)xsltErrorHandler);

The signature of the handler is

    void xsltErrorHandler(id self, const char *message, ...)

I basically parse the format string to find out about va_args which are interesting to me...



You can see it in context at

http://www.entropy.ch/software/sourcecode/TestXSLT.src/ XSLTProcessorLibxslt.m





_________________________________________________________________
Marc Liyanage                                  liyanage access ch
                                            http://www.entropy.ch
                                                      ICQ 5077985

                                      Yoda I am. Grammar I can't.
_________________________________________________________________




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]