You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the same issue using the JAXB library. The main problem, is that the link in schemaLocation is not pointing to a XSD schema. You can just remove the schemaLocation and it works fine. Typing the link into the Browser also reveals the information:
"This schema should never be used as such: the XML Schema Recommendation forbids the declaration of attributes in this namespace"
For schemaLocation the link to the "XMLSchema-instance.xsd" needs to be provided to resolve the issue, or simply remove the entry if it is not needed.
When trying to generate Java classes from the XSD, I had to remove line 7 from the XSD. I don't think it is required.
Anyone with more experience in XSD/XML known why it is there?
The text was updated successfully, but these errors were encountered: