Re: [xml] Does libxml2 create nodes on-the-fly?

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 override the comparator operator to call that routine
in libxml2mod, add a python test case in test/ and bingo you're done :-)

Hmm, this thread looks interesting now :-)

Thanks to William Brack I could create a proper patch that enables
comparison of Python objects derived from xmlCore (i.e. xmlNode and all
subclasses). The bugreport is 345779 and I hope it'll make it into some
not-so-distant future version of libxml2.


You will forget that you ever knew me.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]