Skip to content

Add Generate XML from Grammar wizard command - #1171

Open
angelozerr wants to merge 1 commit into
redhat-developer:mainfrom
angelozerr:feature/generate-xml-from-grammar
Open

angelozerr wants to merge 1 commit into
redhat-developer:mainfrom
angelozerr:feature/generate-xml-from-grammar

Conversation

@angelozerr

@angelozerr angelozerr commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Add multi-step wizard to generate XML from XSD, DTD, RelaxNG, or RNC:

  • Command palette: "XML: Generate XML from Grammar" (local/remote + root element)
  • Explorer context menu on .xsd/.dtd/.rng/.rnc files (root element only)

Fixes #598

Uses LSP commands xml.grammar.listRootElements and xml.grammar.generate from the lemminx language server.

This PR requires eclipse-lemminx/lemminx#1854

Here a demo with remote XSD Schema

XMLGeneratorWithPom

with Spring beans which defines several root element:

XMLGeneratorWithSpringBeans

But it should work with local file, DTD, RNG and RNC schema

You have also a contextual menu from explorer

image

or from editor:

image

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@angelozerr
angelozerr force-pushed the feature/generate-xml-from-grammar branch from 0d05462 to f9a804e Compare September 14, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wizard to generate a XML from a XSD/DTD

1 participant