Martin Minka
2012-05-23 18:55:36 UTC
I would like to produce from a HashMap following XML:
<a id="map_key">map_value</a>
I tried:
@XStreamImplicit(keyFieldName = "a")
@XStreamConverter(MyMapConverter.class)
HashMap<String, String> map = new HashMap<String, String>();
But this combination never enters MyMapConverter.
Is there a way to achieve this ?
Thank you.
<a id="map_key">map_value</a>
I tried:
@XStreamImplicit(keyFieldName = "a")
@XStreamConverter(MyMapConverter.class)
HashMap<String, String> map = new HashMap<String, String>();
But this combination never enters MyMapConverter.
Is there a way to achieve this ?
Thank you.