Re: [xml] Unlinking xmlDocPtr from xsltStylesheet
- From: Daniel Veillard <veillard redhat com>
- To: "Paul B. Cameron" <paul b cameron kepware com>
- Cc: xml gnome org
- Subject: Re: [xml] Unlinking xmlDocPtr from xsltStylesheet
- Date: Mon, 6 Jun 2011 09:04:14 +0800
On Thu, Jun 02, 2011 at 03:47:21PM -0400, Paul B. Cameron wrote:
Is there a 'safe' way to do this? I need to be able to free the document
myself rather than an auto-delete when the xsltStylesheet is freed.
As far as I remember, the stylesheet still points to part of the
document. Consider the xsltStylesheet to own the doc, it will
also modify it. Basically once you compiled the stylesheet doc into
a xsltStylesheet object the doc is not yours anymore,
So nothing safe here.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]