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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -