Re: [xml] Only through experimentation
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: Jose Commins <axora myrealbox com>
- Cc: xml gnome org
- Subject: Re: [xml] Only through experimentation
- Date: Thu, 02 Dec 2004 15:43:25 +0100
Hi,
Jose Commins wrote:
On 2 Dec 2004, at 13:11, Daniel Veillard wrote:
On Thu, Dec 02, 2004 at 11:46:44AM +0000, Jose Commins wrote:
Ok, how about "... including nodes created separately (e.g. with
xmlNewTextChild) that are linked to the document."
no this just add confusion IMHO.
I'm only mentioning this because I see that some are using
xmlFreeNodeList et al when they don't have to :o)
I don't think they do, otherwise you just segfault when you free
the document, fairly easy to spot !
Daniel
Indeed, I get segfaults too - but as an example, a previous post on
this list from someone new to libxml had this:
[...]
Jose, I don't want to interrupt; just an info: this library is written
in C, it has no garbage collector, xmlNodes are neither
reference-counted by C nor by the lib; when you free the entire tree,
all references to any node within are invalid - instantly and
obviously. If this would be Delphi/Java and an xmlNode would be an
interface, your proposal would make sense.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]