
9 Sep
2007
9 Sep
'07
10:57 a.m.
Lawrence Oluyede wrote:
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.
Sounds like you're using remove() or index(), no need to do that.
I didn't find any "setparent" in the API.
How can I do this?
try
node_in_B.append(node_in_A)
See the "Elements are lists" section in the tutorial.
Stefan