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

Allow selecting root element #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SchabaJo
Copy link

Hi!

I discovered, that if the XSD file just specifies a list of elements in arbitrary order, the root element is certainly wrong.
This PR is a quick and dirty fix to allow selecting the root element by name.
The element matching the name is moved to the first position of the array. The array is not modified if the name is not found.

Best regards
Josef

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.

1 participant