On Tue, Dec 30, 2008 at 11:07 AM, Sudhi Shetty <[email protected]> wrote: > I need to parse a XML file having the following format(Not posting the > actual XML due to confidentiality reasons but repesenting the problem > in a sample format) : > > <movielibraries> > <library name="Libra"> > <movie name="XYZ"> > <releasedate date="ABC"/> > <director name="SDR"/> > </movie> > </library> > <library> > ...... > </library> > </movielibraries> > > I want to parse this into a HashMap where in the 'key' is the library > name and value is 'List' of Movie instances for that library. > class Movie { > String name; > Date releaseDate; > String director > } > Is it possible to achieve this using Digester? <snip/>
Yes. Please see the developer guide [1] and examples [2] for details, and let us know if you have specific questions. -Rahul [1] http://commons.apache.org/digester/commons-digester-1.8/docs/api/org/apache/commons/digester/package-summary.html#package_description [2] http://svn.apache.org/repos/asf/commons/proper/digester/trunk/src/examples/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
