in reply to XML::Twig Stream root children
I currently don't have XML::Twig installed, but shouldn't a generic handler like
'/root/*' => \&process_child,
do? Simply create in "process_child" a new root element, cut the current element and insert it into your new root. Save the new root and that should be it.
|
|---|