The Tree style is not the easiest to work with, but it is a tree nonetheless. The script below will help you visualize the data
use strict; use XML::Parser; use Data::Dumper; my $parser = new XML::Parser(Style => 'Tree'); my $tree = $parser->parsefile($ARGV[0]); print Dumper($tree);