-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Go Generator - Main type generates incorrect xml: tag #46
Comments
[](url xsd files for generating and .swg file for unmarshalling attached. They will reproduce the issue described above. |
jimidle
changed the title
Main type generates incorrect xml: tag
Go Generator - Main type generates incorrect xml: tag
Mar 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The xml tag for the top type is generated incorrectly, which makes i impossible to unmarshall in to the top structure.
Steps to reproduce the issue:
expected element type <svgType> but have <svg>
Describe the results you received:
Unable to parse an svg XML file because the generated tag for xml appends
Type
to the XML tag:It does this for all XMLName declarations. Then will declare:
Which also will then sometimes generate duplicates because it does not distinguish between things like simpletype and complextype. For instance with SVG you will see:
Describe the results you expected:
An unmarshalled svg struct, with the generated tag being
xml:"svg"
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
OSX version 12.3
The text was updated successfully, but these errors were encountered: