goxsd icon indicating copy to clipboard operation
goxsd copied to clipboard

Slice is not used for elements with maxOccurs

Open ghost opened this issue 8 years ago • 0 comments

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.

ghost avatar Jun 09 '17 11:06 ghost