title: Deserializing a legacy XML structure in xstream
body: <p>I'm trying to deserialize an xml structure that looks like this:</p>
  
  <pre><code>&lt;somecontainer&gt;
      &lt;key1&gt;Value1&lt;/key1&gt;
      &lt;key1&gt;Value2&lt;/key1&gt;
      &lt;key2&gt;Value3&lt;/key2&gt;
      &lt;key2&gt;Value4&lt;/key2&gt;
  &lt;/somecontainer&gt;
  </code></pre>
  
  <p>I can basically choose what kind if element to deserialize to, maybe something like a List of Pair or something. The essence here is that the element names are the keys.</p>
  
  <p>And no, I cannot change the xml structure. Anyone know how to do this with xstream ?</p>