i have a very simple xml
<List>
<Item name="somename">
.....
</Item>
<Item name="somename2">
....
in my java object i want to use name attribute as a key in a hashmap. Is it possible with jaxb? Something like
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "List")
public class MyList {
private HashMap<String,Item> map;
}
No comments:
Post a Comment