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?

Reply via email to