title: XStream: convert collection with attributes
body: <p>The XML I'm trying to convert looks like:</p>
  
  <pre><code>&lt;numberOfEmployees year="2013"&gt;499.0&lt;/numberOfEmployees&gt;
  </code></pre>
  
  <p>According to the XSD, there can be multiple of these tags, so it's a collection. The generated code looks like:</p>
  
  <pre><code>    protected List&lt;NumberOfPersonnel&gt; numberOfEmployees;
  </code></pre>
  
  <p>When I use <code>@XStreamImplicit</code>, it drops the value, so I need a converter. But combining <code>@XStreamImplicit</code> with <code>@XStreamConverter</code> doesn't seem to work.</p>
  
  <p>So how do I do this? I've tried messing about with my own custom converter that inherits from CollectionConverter, but it claims not to find any children, and honestly I have no idea what I'm doing.</p>
  
  <p>Could someone enlighten me? This shouldn't be this hard, should it?</p>