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

Is this go-xml support xsd:extension? #94

Open
krpmurugan opened this issue Dec 5, 2019 · 1 comment
Open

Is this go-xml support xsd:extension? #94

krpmurugan opened this issue Dec 5, 2019 · 1 comment

Comments

@krpmurugan
Copy link

krpmurugan commented Dec 5, 2019

Is it support xsd:extension element. If yes let us know how to use this. I've tried the cfg.GenSource(doc) xsdgen function seems not working.

@droyo
Copy link
Owner

droyo commented Mar 21, 2020

I'm not sure I understand. The xsd package does support the extension element. Types defined as extensions of simpleContent or complexContent are understood by this package, and xsdgen can generate Go types from them.

If you have a schema, you can run the command in cmd/xsdgen/xsdgen.go against it to generate a Go package. The source of that command is also a suitable example if you are trying to use the cfg.GenSource function.

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

No branches or pull requests

2 participants