[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Does libxml2 create nodes on-the-fly?
- From: Andreas Pakulat <apaku gmx de>
- To: xml gnome org
- Subject: Re: [xml] Does libxml2 create nodes on-the-fly?
- Date: Tue, 20 Jun 2006 20:00:37 +0200
On 20.06.06 18:25:05, Buchcik, Kasimier wrote:
> 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.
Ah, so libxml2's python bindings go the easy route ;-)
> 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
Well, nice to know there is a way in theory, but how about libxml2's
actual set of functions? I couldn't find anything with the libxml2
module. So does libxml2 (the python bindings) provide any means of
checking wether 2 nodes are the same wrt. to the dom?
Andreas
--
Love is in the offing. Be affectionate to one who adores you.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]