users@jaxb.java.net

Want to generate HashMap same way we have List using XSD

From: Utkarsh Shah <utkarsh_shah_at_persistent.co.in>
Date: Mon, 25 Feb 2008 14:30:42 +0530

Hi All,

Is there any way I can have HashMap/TreeMap instead of having List?

Eg
<xsd:element name="List" maxoccurance="unbounded">
:
:
</xsd:element>

Will generate beans having get() method, which will return List.

Is there any way I can generate beans having get() method which returns
HashMap?
Basically what I want to do is, I want to store key value pair in xml and
want to fatch object by passing key.

Regards,
Utkarsh


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.