title: SimpleXML deserialize Map<String, String>
body: <p>I have the XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;addresses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation='schema_task1_1.xsd'&gt;
  
    &lt;address&gt;
      &lt;name&gt;Bill&lt;/name&gt;
      &lt;city&gt;NewYork&lt;/city&gt;
      &lt;street&gt;First&lt;/street&gt;
      &lt;phone type='mobile'&gt;+19139130000&lt;/phone&gt;
      &lt;documents&gt;
        &lt;document type='driving_permit'&gt;9045798749&lt;/document&gt;
        &lt;document type='passport'&gt;3451231231&lt;/document&gt;
      &lt;/documents&gt;
    &lt;/address&gt;
  
    &lt;address&gt;
      ...
    &lt;/address&gt;
  
  &lt;/addresses&gt;
  </code></pre>
  
  <p>And the Java classes:</p>
  
  <pre><code>@Root(name = "addresses")
  public class Addresses {
  
      @ElementList(inline = true, entry = "address", required = false, type = Address.class)
      private List&lt;Address&gt; addresses = new ArrayList&lt;Address&gt;();
  
  public class Address {
  
      @Element(required = false)
      private String name;
      @Element(required = false)
      private String city;
      @Element(required = false)
      private String street;
      @ElementMap(entry = "phone", key = "type", attribute = true, inline = true)
      private Map&lt;String, String&gt; phones;
      @ElementMap(entry = "documents", key = "type", attribute = true, inline = true)
      private Map&lt;String, String&gt; documents = new HashMap&lt;String, String&gt;();
  </code></pre>
  
  <p>All fields deserialize successful, except <code>documents</code>. It is always <code>null</code> when try to deserialize. I thin I have error in <code>@ElementMap</code> annotation, but I don't know what exactly. What am I doing wrong?</p>
  
  <p>PS. I can't change object structure because it is used by another parsers.</p>