Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to some XML parsing, and after taking a look at some of the available modules I really like XML::Twig`s interface best.
My problem is that I want to set up some TwigHandlers for attributes instead of elements (so the handler sub is passed the current twig/element the attribute was found in).
But after searching the XML::Twig documentation and tutorial I didn't find a suitable way to do this. Have I overlooked anything or is it simply impossible? Or might there be a good work-around?
My problem is that I want to set up some TwigHandlers for attributes instead of elements (so the handler sub is passed the current twig/element the attribute was found in).
But after searching the XML::Twig documentation and tutorial I didn't find a suitable way to do this. Have I overlooked anything or is it simply impossible? Or might there be a good work-around?
Back to
Seekers of Perl Wisdom