I must admit that I don't quite understand what you are doing, or even trying to do, but it looks like you are parsing things several time ( the call to parse in uml_class, but I fail to see what's exactly in $xml). It should not be necessary, you can set handlers at different levels of the tree (not twig_roots, but regular twig_handlers).
If you could repost a complete example I might be able to help.
In reply to Re^3: Pulling out sections of an XMI file with XML::Twig
by mirod
in thread Pulling out sections of an XMI file with XML::Twig
by bobf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |