title: Parse xml based on attributes using JAXB
body: <p>I am using JAXB to parse some xml.</p>
  
  <pre><code>&lt;countries&gt;
      &lt;Name language="en"&gt;Australia&lt;/Name&gt;
      &lt;Name language="se"&gt;Australien&lt;/Name&gt;
  &lt;/countries&gt;
  </code></pre>
  
  <p>If I in my class Countries use </p>
  
  <pre><code>@XmlElement(name = "Name", required = true)
      protected List&lt;Name&gt; name;
  </code></pre>
  
  <p>everything works.
  However I would like to only get the attribute where language="en"</p>
  
  <p>So I in my Countries class have</p>
  
  <pre><code>protected String name
  </code></pre>
  
  <p>not a collection.</p>
  
  <p>Is there a good way to solve this with some annotation for example?</p>