http://qs321.pair.com?node_id=737124


in reply to Modified title: The structures created by many of the XML parsers in Perl appear unnecessarily deep in levels...

Just say no. It's XML. Treat it so. Use XML::LibXML. It's got a learning curve but it repays in other areas like JS and the DOM. It's worth it to go native.