Hi,
Is it possible to map following xml
<?xml version="1.0" encoding="UTF-8"?>
<Model name="Retail"
id="c5051678-64a1-4e0f-b2e4" kind="Application"
annotation="Retail" ignoreThis="True">
</Model>
attribute in tree map
private java.util.TreeMap<String, String> attr;
public java.util.TreeMap<String, String> getAttr() {
return attr;
}
public void setAttr(java.util.TreeMap<String, String> attr) {
this.attr = attr;
}
System.out.println(appItem.getAttr());
above state ment would give out like this.
{annotation=Retail, id=c5051678-64a1-4e0f-b2e4, kind=Application, name=Retail}
Thanks
Mradul
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/