[xml] Copying XML subtrees across documents (in Python)

2007-07-18 Thread Jos Vos
Hi, What is the recommended way (in the libxml2 Python binding) to copy a node and all of its children (but not its siblings!) from one document to another document? I tried (x is a node in the new document, y a node in the old document): x.addChild(y)

Re: [xml] Copying XML subtrees across documents (in Python)

2007-07-18 Thread Stefan Behnel
Jos Vos wrote: What is the recommended way (in the libxml2 Python binding) to copy a node and all of its children (but not its siblings!) from one document to another document? ;) the recommended way to use libxml2 from Python is lxml. I tried (x is a node in the new document, y a node in

Re: [xml] Copying XML subtrees across documents (in Python)

2007-07-18 Thread Jos Vos
On Wed, Jul 18, 2007 at 11:48:53AM +0200, Stefan Behnel wrote: ;) the recommended way to use libxml2 from Python is lxml. Thanks, but if anyhow possible, I'd like to stick to something that is available from stock RHEL5 and python-lxml isn't included there. Ok, you want to copy, not move the

[xml] Is libmxl2 supported on VMWare ESX service console?

2007-07-18 Thread Agarwal, Saumya
I get the following error on building libxml on ESX service console - Generating xmlIO.d ... Generating obj/linux/xmlIO.p ... xmlIO.c:32:18: zlib.h: No such file or directory Generating xlink.d ... Generating obj/linux/xlink.p ... xlink.c:30:18: zlib.h: No such file or directory Generating

Re: [xml] Is libmxl2 supported on VMWare ESX service console?

2007-07-18 Thread Bjoern Hoehrmann
* Agarwal, Saumya wrote: Generating xmlIO.d ... Generating obj/linux/xmlIO.p ... xmlIO.c:32:18: zlib.h: No such file or directory You have to install the zlib development package (and perhaps other dependencies) prior to building libxml2, either through the package manager or by building it from