java - How to serialize a Map<String, String> using Simple XML? -
How can you get about being serialized using a map so that something looks like:
< Pre> & lt; Elem foo = "value" & gt; Key & lt; / Elem & gt;
instead of the usual
& lt; Elem foo = "key" & gt; Value & lt; / Elem & gt;
(The map is one of many people, and since it will be edited by a man, I wanted to make it clear.)
[edit] ]: is not okay.
Have you tried something like this:
@ ElementMap (entry = "attribute", value = "value", attribute = true, inline = true) private map & lt; String, string & gt; Map;
Or to use some combination, that is, to use other features too?
Comments
Post a Comment