title: Parse xml with same properties but different parent elements using JAXB
body: <p>I'm using JAXB to parse some xml provided by a separate service. They provide this xml as different elements but I treat them the same. I.E.</p>
  
  <pre><code>&lt;ElementA&gt;
   &lt;name&gt;foo&lt;/name&gt;
   &lt;type&gt;bar&lt;/type&gt;
  &lt;/ElementA&gt;
  
  
  &lt;ElementB&gt;
   &lt;name&gt;foo1&lt;/name&gt;
   &lt;type&gt;bar1&lt;/type&gt;
  &lt;/ElementB&gt;
  </code></pre>
  
  <p>This is how in the data but when I parse/unmarshall it with JAXB I want it to know that ElementA and ElementB are both just instances of the Element class and unmarshall it as such. Currently I am doing this by using the XmlRegistry to say that ElementA is an Element and ElementB is an Element.</p>
  
  <p>However at some point we might receive ElementC and ElementD so I would like a way for JAXB to know those are also just Element without having to add an entry to the XmlRegistry everytime.</p>