commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject Re: [Digester] Help digesting a composite pattern
Date Mon, 14 Apr 2003 21:45:31 GMT
On Tue, 2003-04-15 at 04:12, Jorge Morales Pou wrote:
> Hi list,
>   IŽm trying to digest an xml file, with the commons Digester, that represents
>   somthing like a gui structure, which contains the composite pattern.
> 
>   I have something like this:
> 
>   ------------------------------------------
>   <app>
>     <panels>
>       <panel>
>         <components>
>           <component>
>           </component>

Digester patterns can have a leading "*", so a pattern like
"*/component" will match a component node anywhere in the tree. A
pattern like "*/components/component" will match a component node which
has a "components" parent, anywhere in the tree.

Won't this achieve what you want?

Regards,

Simon



Mime
View raw message