commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Nascimento <>
Subject Re: Newbie Digester XML rules issues
Date Mon, 19 Dec 2005 23:46:30 GMT
When you nest <pattern />s like this:

On 12/19/05, Dubchak, John D <> wrote:
> <object-create-rule pattern="parent" classname="java.util.ArrayList" />
> <pattern value="main/scenario">
>     <object-create-rule classname="Scenario"/>
>     <set-properties-rule/>
>     <pattern value="main/scenario/child">

the outer ones are prepended to the inner ones for matching. So this:

<pattern value="main/scenario/child">

is seen by Digester as:


Simply remove the prefix for the inner pattern elements and configure
them using relative patterns.

Michael Nascimento Santos

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message