1XML::Handler::Sample(3)User Contributed Perl DocumentatioXnML::Handler::Sample(3)
2
3
4
6 XML::Handler::Sample - a trivial PerlSAX handler
7
9 use XML::Parser::PerlSAX;
10 use XML::Handler::Sample;
11
12 $my_handler = XML::Handler::Sample->new;
13
14 XML::Parser::PerlSAX->new->parse(Source => { SystemId => 'REC-xml-19980210.xml' },
15 Handler => $my_handler);
16
18 "XML::Handler::Sample" is a trivial PerlSAX handler that prints out the
19 name of each event it receives. The source for "XML::Handler::Sample"
20 lists all the currently known PerlSAX handler methods.
21
22 "XML::Handler::Sample" is intended for Perl module authors who wish to
23 look at example PerlSAX handler modules. "XML::Handler::Sample" can be
24 used as a template for writing your own PerlSAX handler modules.
25 "XML::Handler::Sample" is in the Public Domain and can be used for any
26 purpose without restriction.
27
29 Ken MacLeod, ken@bitsko.slc.ut.us
30
32 perl(1), PerlSAX.pod(3)
33
34
35
36perl v5.32.0 2020-07-28 XML::Handler::Sample(3)