1 # $Id: Subs.pm,v 1.1 2003/07/27 16:07:49 matt Exp $
3 package XML::Parser::Style::Subs;
9 my $sub = $expat->{Pkg} . "::$tag";
10 eval { &$sub($expat, $tag, @_) };
17 my $sub = $expat->{Pkg} . "::${tag}_";
18 eval { &$sub($expat, $tag) };
26 XML::Parser::Style::Subs
31 my $p = XML::Parser->new(Style => 'Subs', Pkg => 'MySubs');
32 $p->parsefile('foo.xml');
48 Each time an element starts, a sub by that name in the package specified
49 by the Pkg option is called with the same parameters that the Start
50 handler gets called with.
52 Each time an element ends, a sub with that name appended with an underscore
53 ("_"), is called with the same parameters that the End handler gets called
56 Nothing special is returned by parse.