in reply to Re: Need Help Understanding Parsing XML into multi level struck
in thread Need Help Understanding Parsing XML into multi level struck

Or simpler
use XML::Simple; my @href = XMLin(shift, ForceArray => 1, suppressempty => '' ); print Dumper @href;
and then as a oneliner
perl -MXML::Simple -e'print Dumper XMLin(shift, ForceArray => 1, suppr +essempty => "" )' foo.xml

Makeshifts last the longest.