commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Nascimento <mist...@gmail.com>
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 <John.Dubchak@anheuser-busch.com> 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:

main/scenario/main/scenario/child

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

Regards,
Michael Nascimento Santos
https://genesis.dev.java.net/
https://thinnb.dev.java.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message