title: Simple XML Framework : Having an "inline like" behaviour for objects in ElementMap
body: <p>i am trying to serialize an Hashmap of custom Objects on Android to get an xml like :</p>
  
  <pre><code>&lt;ROWSET&gt;
     &lt;ROW num="0"&gt;
        &lt;Name&gt;foo&lt;/Name&gt;
        &lt;FNAME&gt;bar&lt;/FNAME&gt;
        &lt;BIRTH&gt;01/01/2000&lt;/BIRTH&gt;
        &lt;Num&gt;4376484&lt;/NUM&gt;
     &lt;/ROW&gt;
     &lt;ROW num="1"&gt;
        &lt;Name&gt;bar&lt;/Name&gt;
        &lt;FNAME&gt;foo&lt;/FNAME&gt;
        &lt;BIRTH&gt;02/02/2000&lt;/BIRTH&gt;
        &lt;NUM&gt;4376484&lt;/NUM&gt;
     &lt;/ROW&gt;
  &lt;/ROWSET&gt;
  </code></pre>
  
  <p>I created an inner class that contains only the Hashmap that i'm interested in, as i was unable to serialize it the way it is (and read that it's not possible)
  added an object to test like this <code>listEval.put(0,currentEvaluation)</code>.
  following, the inner class :</p>
  
  <pre><code>@Root (name="ROWSET")
  public static class listOfEvals {
  
      @ElementMap (entry="ROW", key="num", attribute=true, inline=true)
      private Map&lt;Integer, EvaluationContent&gt; evalList;
  
      public listOfEvals(Map&lt;Integer, EvaluationContent&gt; list){
          evalList=list;
      }
  
      public Map&lt;Integer, EvaluationContent&gt; getEvalList() {
          return evalList;
      }
  
      public void setEvalList(Map&lt;Integer, EvaluationContent&gt; evalList) {
          this.evalList = evalList;
      }
  }
  </code></pre>
  
  <p>EvaluationContent object is defined like this :</p>
  
  <pre><code>public class EvaluationContent {
  
      @Element(name="Name", required = false)
      private String mName; 
      @Element(name="FNAME", required = false)         
      private String mFname;
      @Element(name="BIRTH", required = false)        
      private String mBirth; 
      @Element(name="Num", required = false)        
      private String mNum; 
  
      public String getName() {
          return mName;
      }
      public void setName(String mName) {
          this.mName = mName;
      }
       ... 
      }
  </code></pre>
  
  <p>The problem is that i'm getting a <code>&lt;evaluationContent&gt;</code> tag for each entry:</p>
  
  <pre><code>&lt;ROWSET&gt;
         &lt;ROW num="0"&gt;
            &lt;evaluationContent&gt;
              &lt;Name&gt;foo&lt;/Name&gt;
              &lt;FNAME&gt;bar&lt;/FNAME&gt;
              &lt;BIRTH&gt;01/01/2000&lt;/BIRTH&gt;
              &lt;Num&gt;4376484&lt;/NUM&gt;
            &lt;/evaluationContent&gt;
         &lt;/ROW&gt;
         &lt;ROW num="1"&gt;
            &lt;evaluationContent&gt;
           ...
            &lt;evaluationContent&gt;
         &lt;/ROW&gt;
      &lt;/ROWSET&gt;
  </code></pre>
  
  <p>There must be a better way to achieve that but i'm unable to figure out how, thanks for your help</p>