[Simple-support] mapping map with nested lists
Brought to you by:
niallg
|
From: Johannens Z. <JZ...@10...> - 2008-04-09 21:39:10
|
Hi there, the framework looks great! I have following xml <attributeSets> <attributeSet id="set1"> <attribute type="STRING">aString</attribute> <attribute type="LONG">124</attribute> </attributeSet> <attributeSet id="set2"> <attribute type="STRING">a2ndString</attribute> </attributeSet> </attributeSets> I wonder if its possible to map this to a single map ? The mapKey should be the id attribute of attributeSet. The mapValue should be an List of Attribute objects. The signature looks like Map<String, List<Attribute>> So given this example xml the map would have to entries. The value of the first entry is a list of 2 attributes. The value of the second is a list of 1 attribute. Is that possible ? Johannes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101tec GmbH Halle (Saale), Saxony-Anhalt, Germany http://www.101tec.com |