1XML::PatAct::MatchName(U3s)er Contributed Perl DocumentatXiMoLn::PatAct::MatchName(3)
2
3
4

NAME

6       XML::PatAct::MatchName - A pattern module for matching element names
7

SYNOPSIS

9        use XML::PatAct::MatchName;
10
11        my $matcher = XML::PatAct::MatchName->new();
12
13        my $patterns = [ 'foo' => ACTION,
14                         'bar/foo' => ACTION,
15                         ... ];
16

DESCRIPTION

18       XML::PatAct::MatchName is a pattern module for use with PatAct drivers
19       for applying pattern-action lists to XML parses or trees.
20       XML::PatAct::MatchName is a simple pattern module that uses just
21       element names to match on.  If multiple names are supplied seperated by
22       `"/"' characters, then all of the parent element names must match as
23       well.
24
25       The order of patterns in the list is not significant.
26       XML::PatAct::MatchName will use the most specific match.  Using the
27       synopsis above as an example, if you have an element `"foo"',
28       `"bar/foo"' will match if `"foo"' is in an element `"bar"', otherwise
29       just the pattern with `"foo"' will match.
30

AUTHOR

32       Ken MacLeod, ken@bitsko.slc.ut.us
33

SEE ALSO

35       perl(1)
36
37       ``Using PatAct Modules'' and ``Creating PatAct Modules'' in libxml-
38       perl.
39
40
41
42perl v5.26.3                      2003-10-21         XML::PatAct::MatchName(3)
Impressum