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

Code Action to generate elementFormDefault="qualified" from XML #894

Open
angelozerr opened this issue Sep 25, 2020 · 0 comments
Open

Code Action to generate elementFormDefault="qualified" from XML #894

angelozerr opened this issue Sep 25, 2020 · 0 comments

Comments

@angelozerr
Copy link
Contributor

This issue #856 fixes the infinite loop error range and server doesn't stop when you try to validate the foo.xml file too many times (because of infinite loop).

But code action is wrong:

image

After spending time, the correct fix is to add elementFormDefault="qualified" in the XSD file:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
	elementFormDefault="qualified"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://foo">
	<xs:element name="foo">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="bar" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

I think it's an hard task.

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

No branches or pull requests

1 participant