May 19, 2005
5:56 p.m.
Florian Wagner wrote:
I do have to make copies of nodes in an application I'm writing, so I've tried making a patch for lxml to allow me to do that. The patch is attached, but since I don't have experience with Pyrex and libxml2 there could well be something wrong with it. It seems to work, though.
Great, a patch, thanks! I've contacted Fredrik Lundh about this too, as ElementTree seems to be lacking this operation as well.
Also I don't know if creating a new document / _ElementTree for the new nodes is the right thing to do, but I suppose it should be...
I'll make sure to study this patch carefully and give you feedback on it. Thanks again! Martijn