[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: Sat, 24 Jun 2006 16:16:58 +0200
On 24.06.06 09:12:47, Daniel Veillard wrote:
> On Sat, Jun 24, 2006 at 12:26:47AM +0200, Andreas Pakulat wrote:
> > (though I'm not familiar with libxml2's C Interface, nor the
> > Python-C-Bridge-Stuff in general)...
>
> Should be fairly simple, make a C python binding routine based on
> existing ones in python/libxml.c , give it a significant name,
> change the beginning to expect 2 python obect references as arguments,
> see type.h to see how the C object is attached, get the two xmlNodePtr
> associated. Compare them, and return an python 0 or 1, then register
> the new routine at the end of libxml.c
> now in libxml.py override the comparator operator to call that routine
> in libxml2mod, add a python test case in test/ and bingo you're done :-)
Thanks for the extensive information, I just got another hour free time
and will try.
Andreas
--
You work very hard. Don't try to think as well.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]