Skip to content

CodeAction for cvc-elt.1.a #599

@angelozerr

Description

@angelozerr

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions