in reply to Modified title: The structures created by many of the XML parsers in Perl appear unnecessarily deep in levels...
How would you expect arbitrary one-to-many hierarchical data to look like?
But if you simply want to manipulate XML, XML::Twig provided a simple solution for me.