commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Heimann <>
Subject [Digester] Namespacesupport, Patch
Date Sun, 01 Sep 2002 14:08:09 GMT
Hi all,

as posted earlier, here is the patch that adds support for rules that
can match element in different namespaces. For example, its possible
the have a pattern ``/foo:a/bar:b'' that matches


but not


You would setup the rule like that:

Rules rules = digester.getRules();
rules.registerNamespacePrefix("foo", "");
rules.registerNamespacePrefix("bar", "");
rules.addRule("/foo:a/bar:b", new MyRule());

I have updated the matching behaviour of RulesBase and
ExtendedBaseRules. The matching semantic did not change, there are
only some more possibilities.

All unit-tests are running.


Stefan Heimann       |
Brandensteinstr. 5   |
D-79110 Freiburg     |

View raw message