XML::PatAct::MatchName(3pm)

XML::PatAct::MatchName3pm

A pattern module for matching element names

Usage

 use XML::PatAct::MatchName;
 my $matcher = XML::PatAct::MatchName->new();
 my $patterns = [ 'foo' => ACTION,
                  'bar/foo' => ACTION,
                  ... ];

Overview

XML::PatAct::MatchName is a pattern module for use with PatAct drivers for applying pattern-action lists to XML parses or trees. XML::PatAct::MatchName is a simple pattern module that uses just element names to match on. If multiple names are supplied seperated 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 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.

Releases

14 releases since Debian 2.2 (Potato); the text changed 7 times.

  1. 2.2
  2. 3.0
  3. 3.1–5.0
  4. 6.0–9
  5. 10
  6. 11
  7. 12–13
  8. Arch

Author

Ken MacLeod, [email protected]

From libxml-perl 0.08-9 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.