title: xstream alias from different parameter
body: <p>I try to address an advanced problem with mapping lists from my xml to my Java Objects.</p>
  
  <p>I can give the problem a name: <a href="https://api.testeveonline.com/api/CallList.xml.aspx" rel="nofollow noreferrer">EVE XML API</a></p>
  
  <p>The link shows one problem I can't reverse engineer well: Same element tag with different content, but same attribute with different value.</p>
  
  <p>It worked well to serialize objects to XML, but it can't convert back from the resulting XML to the object.</p>
  
  <p>I did this mapping of my various classes:</p>
  
  <p>```</p>
  
  <pre><code>XStream xStream = new XStream( );
  
  // Aliases
  xStream.alias("eveapi", CallList.class);
  xStream.aliasAttribute(CallList.class, "version", "version");
  
  xStream.alias("row", RowCallGroups.class);
  xStream.aliasField("rowset", Result.class, "callGroups");
  xStream.aliasAttribute(RowCallGroups.class, "groupID", "groupID");
  xStream.aliasAttribute(RowCallGroups.class, "name", "name");
  xStream.aliasAttribute(RowCallGroups.class, "description", "description");
  
  xStream.addImplicitCollection(RowSetCallGroups.class, "callGroups");
  xStream.alias("rowset", RowSetCallGroups.class);
  xStream.aliasAttribute(RowSetCallGroups.class, "name", "name");
  xStream.aliasAttribute(RowSetCallGroups.class, "key", "key");
  xStream.aliasAttribute(RowSetCallGroups.class, "columns", "columns");
  
  xStream.alias("row", RowCalls.class);
  xStream.aliasField("rowset", Result.class, "calls");
  xStream.aliasAttribute(RowCalls.class, "accessMask", "accessMask");
  xStream.aliasAttribute(RowCalls.class, "type", "type");
  xStream.aliasAttribute(RowCalls.class, "name", "name");
  xStream.aliasAttribute(RowCalls.class, "groupID", "groupID");
  xStream.aliasAttribute(RowCalls.class, "description", "description");
  
  xStream.addImplicitCollection(RowSetCalls.class, "calls");
  xStream.alias("rowset", RowSetCalls.class);
  xStream.aliasAttribute(RowSetCalls.class, "name", "name");
  xStream.aliasAttribute(RowSetCalls.class, "key", "key");
  xStream.aliasAttribute(RowSetCalls.class, "columns", "columns");
  </code></pre>
  
  <p>```</p>
  
  <p>Any idea, how I can make a mapping based on the content of the <code>name=</code> attribute?</p>