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

Slice is not used for elements with maxOccurs #5

Open
ghost opened this issue Jun 9, 2017 · 0 comments
Open

Slice is not used for elements with maxOccurs #5

ghost opened this issue Jun 9, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2017

Example XSD:

<xsd:element name="Name" type="xsd:string" minOccurs="0" maxOccurs="3"/>

Generated struct field:

Name string `xml:"Name"`

This is incorrect, as the Name element can appear multiple times.

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

0 participants