eth4io / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Python copy element #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I know that 'once an element is set to a given parent, it cannot be
detached.'  Is there some way to deepcopy the element or create a new one
with the same information as the old to attach to a new parent?

What version of the product are you using? On what operating system?
The Python bindings of libkml 1.0 on Fedora 11

Did you run the unit test suite that comes with the project? Did all tests
pass?
yes and yes

Original issue reported on code.google.com by grien...@gmail.com on 14 Jul 2009 at 7:23

GoogleCodeExporter commented 8 years ago
Never mind.  I was only looking at kmldom.  I have since found the Clone() 
function
in kmlengine.

Original comment by grien...@gmail.com on 14 Jul 2009 at 8:45

GoogleCodeExporter commented 8 years ago
Yep, Clone is exactly for this.

Original comment by kml.mash...@gmail.com on 14 Jul 2009 at 10:26