# phpman > man > XML::PatAct::MatchName(3pm)

## NAME
    [XML::PatAct::MatchName](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AMatchName/markdown) - A pattern module for matching element names

## SYNOPSIS
     use [XML::PatAct::MatchName](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AMatchName/markdown);

     my $matcher = [XML::PatAct::MatchName](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AMatchName/markdown)->new();

     my $patterns = [ 'foo' => ACTION,
                      'bar/foo' => ACTION,
                      ... ];

## DESCRIPTION
    [XML::PatAct::MatchName](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AMatchName/markdown) is a pattern module for use with PatAct drivers for applying
    pattern-action lists to XML parses or trees. [XML::PatAct::MatchName](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AMatchName/markdown) is a simple pattern module
    that uses just element names to match on. If multiple names are supplied separated by `"/"'
    characters, then all of the parent element names must match as well.

    The order of patterns in the list is not significant. [XML::PatAct::MatchName](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AMatchName/markdown) will use the most
    specific match. Using the synopsis above as an example, if you have an element `"foo"',
    `"bar/foo"' will match if `"foo"' is in an element `"bar"', otherwise just the pattern with
    `"foo"' will match.

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

## SEE ALSO
### perl

    ``Using PatAct Modules'' and ``Creating PatAct Modules'' in libxml-perl.

