Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4.3 XSD #24

Closed
rubendel opened this issue Dec 7, 2021 · 1 comment
Closed

0.4.3 XSD #24

rubendel opened this issue Dec 7, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@rubendel
Copy link
Contributor

rubendel commented Dec 7, 2021

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?

<xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://www.w3.org/2001/XMLSchema-instance"/>
@MarcelStepien
Copy link

MarcelStepien commented Feb 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants