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

CodeAction for cvc-elt.1.a #599

Closed
angelozerr opened this issue Sep 29, 2021 · 0 comments · Fixed by eclipse/lemminx#1225
Closed

CodeAction for cvc-elt.1.a #599

angelozerr opened this issue Sep 29, 2021 · 0 comments · Fixed by eclipse/lemminx#1225
Assignees
Labels
codeaction enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@angelozerr
Copy link
Contributor

Given this XML file:

<root-element xmlns="https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd 
		https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
	
</root>

root-element element is not correct:

image

It should be nice to have several code action to replace with xs:element declared in XSD (in this case doctrine-mapping):

Replace 'root-element' with 'doctrine-mapping'

Just to explain how to have this XML file see the following demo:

GenerateXML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codeaction enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants