# phpman > perldoc > XML::Handler::Sample

## NAME
    [XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown) - a trivial PerlSAX handler

## SYNOPSIS
     use [XML::Parser::PerlSAX](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser%3A%3APerlSAX/markdown);
     use [XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown);

     $my_handler = [XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown)->new;

     [XML::Parser::PerlSAX](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser%3A%3APerlSAX/markdown)->new->parse(Source => { SystemId => 'REC-xml-19980210.xml' },
                                      Handler => $my_handler);

## DESCRIPTION
    "[XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown)" is a trivial PerlSAX handler that prints out the name of each event it
    receives. The source for "[XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown)" lists all the currently known PerlSAX handler
    methods.

    "[XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown)" is intended for Perl module authors who wish to look at example PerlSAX
    handler modules. "[XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown)" can be used as a template for writing your own PerlSAX
    handler modules. "[XML::Handler::Sample](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ASample/markdown)" is in the Public Domain and can be used for any purpose
    without restriction.

## AUTHOR
    Ken MacLeod, <ken@bitsko.slc.ut.us>

## SEE ALSO
### perl

