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