title: JAXB more than one possible root element
body: <p>I need to bind an XML response using JAXB. however, there are two possible responses, either the success XML or error XML. So, I need a way to receive either one. Below are two sample XML files. I'd appreciate it, if anyone could help me with this. I've been looking everywhere how to do achieve to good solution! Thanks!!</p>
  
  <p>Successful response:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ResponseEnvioComandoSpy&gt;
  &lt;comandoSpy&gt;
  &lt;id&gt;5&lt;/id&gt;
  &lt;status&gt;4&lt;/status&gt;
  &lt;erro&gt;0&lt;/erro&gt;
  &lt;/comandoSpy&gt;
  &lt;/ResponseEnvioComandoSpy&gt;
  </code></pre>
  
  <p>Error response</p>
  
  <pre><code>&lt;ErrorRequest&gt;
  &lt;codigo&gt;14&lt;/codigo&gt;
  &lt;erro&gt;Nenhum comando/macro a ser enviada, favor verificar as tags xml.&lt;/erro&gt;
  &lt;request&gt;EnvioComando&lt;/request&gt;
  &lt;/ErrorRequest&gt; 
  </code></pre>