in reply to copy XML elements from one file to another
I just don't know how to copy the element itself.
Why not? XML::LibXML::Element -> XML::LibXML::Node#cloneNode, appendChild ...