title: How to Map different type of element which contains same into single java class objetc using jaxb
body: <p>My Problem is that client sendind xml request which contains different type of element with same name and i need to have convert into java object. I am adding request below.
  First request is :-</p>
  
  <pre><code> &lt;root&gt;
    &lt;params&gt;
      &lt;game&gt;1&lt;/game&gt;
    &lt;/params&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>And second is :-</p>
  
  <pre><code>&lt;root&gt;
      &lt;params&gt;
           &lt;game&gt;
              &lt;id&gt;1&lt;/id&gt;
              &lt;name&gt;Lucky 7&lt;/name&gt;
              &lt;translation&gt;Lucky 7&lt;/translation&gt;
          &lt;/game&gt;
      &lt;/params&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I have looke up on stakeoverflow but i didn't get solution.Hoping some one can help out to add into single java class rather then use multiple java class.</p>