Re: [xslt] intercepting xmlFreeNode?
- From: "Oleg A. Paraschenko" <olpa xmlhack ru>
- To: veillard redhat com, The Gnome XSLT library mailing-list <xslt gnome org>
- Cc:
- Subject: Re: [xslt] intercepting xmlFreeNode?
- Date: Fri, 26 Aug 2005 23:05:25 +0400
Hello,
thank you a lot, I was not very attentive. Now my program coredumps much
later, and it's not fault of libxml.
On Thu, 25 Aug 2005 11:43:51 -0400
Daniel Veillard <veillard redhat com> wrote:
> 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/
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt gnome org
> http://mail.gnome.org/mailman/listinfo/xslt
>
--
Oleg Paraschenko olpa@ http://xmlhack.ru/ XML news in Russian
http://uucode.com/blog/ Generative Programming, XML, TeX, Scheme
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]