My difficulty is that I believe I need some kind of recursive pattern-matching capability
in order to properly handle the general case.

Like Robert said, you may have to use ExtendedBaseRules (http://jakarta.apache.org/commons/digester/apidocs/org/apache/commons/digester/ExtendedBaseRules.html)


But from your description, I suspect that you can get what you want from the standard digester configuration, by using tail match. The pattern "*/xyz" will match element xyz regardless of how many levels of nesting there are. From the manual:

/Tail Match/ - A pattern "*/a/b" matches a |<b>| element, nested inside an |<a>| element, no matter how deeply the pair is nested.

Are you asking for something more complicated than that?

Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to