I have some problems unmarshalling XML files containing valid UTF-8 with some characters like &
that are invalid in an XML context.
As the files comes from using the MetaData API of spotify, I have no means to make sure that they are correctly encoded.
Now I do know that I can parse the file and replace all those instances with &
but as this problem is probably quite common, I wonder how one usually handle this? Is there some helper class in JAXB or otherwise that I should use, or do everyone write their own code to handle this problem?