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

Bind XML with no grammar constraints to XSD / DTD #151

Closed
fbricon opened this issue Sep 28, 2018 · 2 comments · Fixed by #800
Closed

Bind XML with no grammar constraints to XSD / DTD #151

fbricon opened this issue Sep 28, 2018 · 2 comments · Fixed by #800
Assignees
Labels
DTD enhancement New feature or request XSD
Milestone

Comments

@fbricon
Copy link
Contributor

fbricon commented Sep 28, 2018

IntelliJ IDEA has this command to automatically generate an XSD schema from an XML file:

generate-schema

Such command would take at least 2 parameters:

  • source file URI
  • target XSD file URI (optional, would default to source name without extension + ".xsd")

I'd give that issue a very low priority, until other people vote for it.

@fbricon fbricon added the enhancement New feature or request label Sep 28, 2018
@angelozerr
Copy link
Contributor

To do that, we could using the XMLGenerator https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/contentmodel/utils/XMLGenerator.java which works with CMDocument. It could works too with DTD once we will have a DTDDocument which implements CMDocument.

@bmix
Copy link

bmix commented Apr 28, 2019

Trang can do this, in addition to conversion between different schemata.

Ideally, this would need more than just one XML instance document to get a better understanding of structure (possible with Trang). Also here, at Stack Overflow: Any tools to generate an XSD schema from an XML instance document?

@angelozerr angelozerr changed the title Provide command to generate XSD schema from xml Bind XML with no grammar constraints to XSD / DTD Jun 23, 2020
@angelozerr angelozerr self-assigned this Jun 23, 2020
@angelozerr angelozerr added this to the 0.13.0 milestone Jun 23, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
Fixes eclipse#151

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 23, 2020
Fixes #151

Signed-off-by: azerr <azerr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DTD enhancement New feature or request XSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants