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

Reply via email to