Sudhi Shetty schrieb:
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
}
Just push the HashMap on the stack before calling parse(). For <library> I would probably define my own rule, which would put an empty ArrayList<Movie> with the name of library as key into that hashmap. Constructing the Movies and adding them to the list should be quit simple then.

kind regards
Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to