Re: [xml] Re: python interfaces for libxml2



Daniel Veillard wrote:
Then what wou really need is a xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxtPtr,
                              xmlRelaxNGValidityErrorFunc *,
                              xmlRelaxNGValidityWarningFunc *,
                              void **)

function, not another field in the structure !
Right ?

Hmm... No, I don't think so...

This is the function I'm currently using to register my handlers for the context.
As last parameter I can provide some custom data.

The problem is: when I create this data dynamically, I have to store a pointer
to it somewhere, so I can free it when I destroy the context. For one context
this would be easy, but when I use a lot of parallel validating, with different
contexts, I have to store informations about contexts and their userdata.
Or do I miss something??

Joachim

--
Joachim Bauch

struktur AG             Fon.:  +49 (0)711 896656 69
Junghansstr. 5          Fax.:  +49 (0)711 896656 10
D-70469 Stuttgart       eMail: bauch struktur de                    solutions for
Germany                 Web:   http://www.struktur.de            digital business

Download icoya OpenContent 1.3 for FREE!    visit http://www.icoya.de/iOC4free <-




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