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).
My file looks like:
<Root> <Element> ... </Element> ... </Root> [binary invalid content]
Is that possible to unmarshal only xml valid part of a file? Thanks for all your help.