Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
Parser::Style::Debug(3User Contributed Perl DocumentatiParser::Style::Debug(3)
NAME
XML::Parser::Style::Debug - Debug style for XML::Parser
SYNOPSIS
use XML::Parser;
my $p = XML::Parser->new(Style => 'Debug');
$p->parsefile('foo.xml');
DESCRIPTION
This just prints out the document in outline form to STDERR. Nothing
special is returned by parse.
perl v5.8.8 2003-08-18 Parser::Style::Debug(3)