Re: [xml] Does libxml2 create nodes on-the-fly?
- From: "Buchcik, Kasimier" <k buchcik 4commerce de>
- To: "Andreas Pakulat" <apaku gmx de>
- Cc: xml gnome org
- Subject: Re: [xml] Does libxml2 create nodes on-the-fly?
- Date: Tue, 20 Jun 2006 18:25:05 +0200
Hi,
-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On
Hi,
still using the python bindings...
It seems that I always get new python objects everytime I ask for
node.children, is that correct? This makes it rather hard to
Yes, this is the intended behaviour; otherwise one would have to
implement reference counting or keep the python wrapper objects
for Libxml's nodes always alive.
DOM Level 3 introduced the method "isSameNode" for such scenarios:
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-
isSameNode
look for a
specific node within the tree, given the node as a result of say an
xpath expression. Do I miss anything?
Andreas
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]