What have you tried?
Actually for something like that I might use XML::Parser instead. Try a super search and see what you can find, there's been a bunch of relevant stuff recently.
Some of the answers to trying to understand xml::twig and also trying to learn how to extract attribute ought to be of help. In fact with minor work the code in Re: trying to understand xml::twig and also trying to learn how to extract attribute pretty much oes what you want already.
In reply to Re: xml::twig gathering all element and att and its value question
by GrandFather
in thread xml::twig gathering all element and att and its value question
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |