commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madisetti, Sumesh " <sumesh.madise...@citi.com>
Subject Digester1.8 and recursive tag types
Date Thu, 09 Aug 2007 21:51:46 GMT
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/struts-user@jakarta.apache.org/msg54338.html

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


Mime
View raw message