commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sudhi Shetty" <>
Subject [Digester] Parse into HashMap using Commons Digester
Date Tue, 30 Dec 2008 16:07:54 GMT
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) :

<library name="Libra">
  <movie name="XYZ">
       <releasedate date="ABC"/>
       <director name="SDR"/>

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?

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