Re: [xml] when to call initGenericErrorDefaultFunc()
- From: Marc Liyanage <liyanage access ch>
- To: Stefan Kost <kost imn htwk-leipzig de>
- Cc: xml gnome org
- Subject: Re: [xml] when to call initGenericErrorDefaultFunc()
- Date: Tue, 22 Oct 2002 19:30:29 +0200
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]