commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baltz, Kenneth" <Kba...@firstam.com>
Subject [Digester]How to populate a HashMap?
Date Wed, 18 Dec 2002 22:05:56 GMT
How would I go about doing the following using Digester?

Given XML as such:
<library>
	<book>
		<title>TITLE TEXT</title>
		<author>AUTHOR TEXT</author>
	</book>
	<!-- multiple books to follow -->
	<book>
	...
	</book>
</library>

Assume there's a Book bean with title and author properties.


How can I make the digester read in the books and put them in a HashMap by
title?  I can't see how to pass the object on the top of the stack as an
argument to a method call.

K.C. Baltz


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message