title: How to unmarshal XML valid part of not xml file - JAXB
body: <p>I have to marshal some class in XML format to the file (with no xml extension) as a header, and then append at the end of a file some invalid content. After that, obviously I would like to unmarshal this class with a JAXB unmarshaller, but I got a problem - it returns null, because the file is no longer valid xml (without additional content, all works perfect). </p>
  
  <p>My file looks like:</p>
  
  <pre><code>&lt;Root&gt;
      &lt;Element&gt;
           ...
      &lt;/Element&gt;
      ...
  &lt;/Root&gt;
  [binary invalid content]
  </code></pre>
  
  <p>Is that possible to unmarshal only xml valid part of a file? 
  Thanks for all your help.</p>