title: How to get XML to Map of Objects in Java using jaxb?
body: <p>I have an xml like</p>
  
  <pre><code>&lt;nodes&gt;
   &lt;node&gt;
      &lt;id/&gt;
      &lt;name/&gt;
   &lt;/node&gt;
   &lt;node&gt;
      &lt;id/&gt;
      &lt;name/&gt;
   &lt;/node&gt;
  &lt;/nodes&gt;
  </code></pre>
  
  <p>so I wanted to know is it possible to unmarshall this is as a map of objects with key as node id using jaxb?</p>
  
  <p>Thanks</p>