Hi,

* Jos� Antonio P�rez Testa [mailto:[EMAIL PROTECTED]
> I think that the problem is in the xml structure and the fact 
> that the 
> same token 'baz' creates the object and calls the method.
> I'm doing a very similar processing whith the following rules:
> 
> <digester-rules>
>   <object-create-rule pattern="foo" classname="MyFoo"/>
> 
>   <pattern value="foo/bar">
>     <object-create-rule classname="MyBaz"/>
>     <call-method-rule pattern="baz" methodname="setContent" 
> paramcount="0"/>
>     <set-next-method methodname="addBaz"/>
>   </pattern>
> </digester-rules>

This is what I tried: <call-method-rule> first, <set-next-method>
second. As I wrote, this calls addBaz() of the MyFoo instance before
setContent() of the MyBaz instance is called. So this exactly is my
problem.

> If there is only one 'baz' in each 'bar' this should work!

But even if there were more than one 'baz' in each 'bar' a new
MyBaz schould be created, filled, and added to MyFoo for each of them
using your rule. Correct?

Regards
Lutz

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

Reply via email to