My schema specifies a namespace, but the documents don’t. What’s the simplest way to ignore namespace during JAXB unmarshalling (XML -> object)?
In other words, I have
<foo><bar></bar></foo>
instead of,
<foo xmlns='http://tempuri.org/'><bar></bar></foo>
I believe you must add the namespace to your xml document, with, for example, the use of a SAX filter.
That means:
then link the two together: