1 # $Id: Debug.pm,v 1.1 2003/07/27 16:07:49 matt Exp $
3 package XML::Parser::Style::Debug;
9 print STDERR "@{$expat->{Context}} \\\\ (@_)\n";
15 print STDERR "@{$expat->{Context}} //\n";
21 $text =~ s/([\x80-\xff])/sprintf "#x%X;", ord $1/eg;
22 $text =~ s/([\t\n])/sprintf "#%d;", ord $1/eg;
23 print STDERR "@{$expat->{Context}} || $text\n";
30 my @foo = @{$expat->{Context}};
31 print STDERR "@foo $target($text)\n";
39 XML::Parser::Style::Debug - Debug style for XML::Parser
44 my $p = XML::Parser->new(Style => 'Debug');
45 $p->parsefile('foo.xml');
49 This just prints out the document in outline form to STDERR. Nothing special is