Hi,

I am having trouble parsing recursive tags with digester version 1.8.

With the digester def below, I am not able to get to any of the inner
list elements such as person.name=bar3. 

Any help appreciated.

Thanks
Sumesh

Xml -
=====
<list>
        <person><name>foo</name></person>
        <person><name>bar</name></person>
        <list>
                <person><name>foo2</name></person>
                <person><name>bar2</name></person>
                <list>
                        <person><name>bar3</name></person>
                </list>
        </list>
        <person><name>zap</name></person>
        <list></list>
</list> 


Digester
========
<digester-rules>
        <pattern value="*/list">
                <object-create-rule classname="java.util.ArrayList"/>
                <pattern value="person">
                        <object-create-rule classname="TestDig"/>
                        <set-next-rule methodname="add"/>
                </pattern>
        </pattern>      
</digester-rules>

Already followed the chain below and tried the suggestion but does not
seem to work for me.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg54338.html

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

Reply via email to