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.
In reply to Re: XML::Twig Stream root children
by Skeeve
in thread XML::Twig Stream root children
by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |