in reply to xml_merge
Maybe it would be a cool idea to put this (and xml_split) in the next XML::Twig release.
/J\
It will be, in fact it is already in the development version: XML-Twig-3.16.tar.gz.