Re: [xslt] intercepting xmlFreeNode?



On Thu, Aug 25, 2005 at 07:11:12PM +0400, Oleg A. Paraschenko wrote:
>   Hello,
> 
>   I'm writing an XSLT extension function, which collects pointers to nodes
> for a later use. Unfortunately, sometimes libxslt frees the nodes which
> are collected, so the pointers become corrupted and my program crashes.
> 
>   Is there any way to intercept xmlFreeNode or to notice that the nodes go
> away?

  the later you can register a callback for node destruction:

  http://xmlsoft.org/html/libxml-globals.html#xmlDeregisterNodeDefault

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


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