title: @XmlElement with multiple names
body: <p>I have a situation here, trying to act as a gateway between two APIs. What I need to do, is:</p>
  
  <ol>
  <li>make a request to an APIa;</li>
  <li>parse (marshal) the XML response into an java object;</li>
  <li>make little changes to it;</li>
  <li>and then give a response in XML (unmarshal) to the other end (APIb).</li>
  </ol>
  
  <p>The thing is that I use the same object to parse the API response and to send the response to the other end.</p>
  
  <pre><code>public class ResponseAPI{
  
  @XmlElement(name="ResponseCode") //I receive &lt;ResponseCode&gt; but I need to send &lt;ResultCode&gt;
  private String responseCode;
  
  //getter and setter
  }
  </code></pre>
  
  <p>as the comment says: I receive  but I need to send </p>
  
  <p>Is there a way to get this done without having to create another extra class which carries ResultCode?</p>
  
  <p>thanks in advance!</p>