XMLin($xml, ForceArray => 1); ... # Reference to array of foo elements. my $foos = $node->{foo};