1XML::PatAct::MatchName(U3s)er Contributed Perl DocumentatXiMoLn::PatAct::MatchName(3)
2
3
4
6 XML::PatAct::MatchName - A pattern module for matching element names
7
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
18 XML::PatAct::MatchName is a pattern module for use with PatAct drivers
19 for applying pattern-action lists to XML parses or trees. XML::Pat‐
20 Act::MatchName is a simple pattern module that uses just element names
21 to match on. If multiple names are supplied seperated by `"/"' charac‐
22 ters, then all of the parent element names must match as well.
23
24 The order of patterns in the list is not significant. XML::Pat‐
25 Act::MatchName will use the most specific match. Using the synopsis
26 above as an example, if you have an element `"foo"', `"bar/foo"' will
27 match if `"foo"' is in an element `"bar"', otherwise just the pattern
28 with `"foo"' will match.
29
31 Ken MacLeod, ken@bitsko.slc.ut.us
32
34 perl(1)
35
36 ``Using PatAct Modules'' and ``Creating PatAct Modules'' in
37 libxml-perl.
38
39
40
41perl v5.8.8 2003-10-21 XML::PatAct::MatchName(3)