[lxml-dev] Reparenting a node

Lawrence Oluyede l.oluyede at gmail.com
Sun Sep 9 19:32:27 CEST 2007


I have a doc A and a doc B, I'd like to put a node extracted from A in
the document B but I always get a ValueError:

ValueError: Element is not a child of this node.

I didn't find any "setparent" in the API.

How can I do this?

-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair


More information about the lxml-dev mailing list