SYNOPSIS

 use XML::PatAct::MatchName;

 my $matcher = XML::PatAct::MatchName->new();

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

DESCRIPTION

XML::PatAct::MatchName is a pattern module for use with PatAct drivers for applying pattern-action lists to \s-1XML\s0 parses or trees. XML::PatAct::MatchName is a simple pattern module that uses just element names to match on. If multiple names are supplied separated by `\*(C`/\*(C'' 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 will use the most specific match. Using the synopsis above as an example, if you have an element `\*(C`foo\*(C'', `\*(C`bar/foo\*(C'' will match if `\*(C`foo\*(C'' is in an element `\*(C`bar\*(C'', otherwise just the pattern with `\*(C`foo\*(C'' will match.

AUTHOR

Ken MacLeod, [email protected]

RELATED TO XML::PatAct::MatchName…

perl\|(1)

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