[go-nuts] Re: dynamic xml

2017-10-19 Thread Jim Cote
You'll need to use an UnmarshalXML func for the params: // Param is a tag w/ any name type Param struct { Namestring `xml:"-"` Typestring `xml:"type,attr"` MinOccurs int`xml:"minOccurs,attr"` MaxOccurs int`xml:"maxOccurs,attr"` Description string

[go-nuts] Re: dynamic xml

2017-10-19 Thread Jim Cote
You'll need to use a custom UnmarshalXML func to handle this. // TopLevel is of course top level type TopLevel struct { Description string `xml:"description"` Rights Rights `xml:"rights"` Method []Method `xml:"method"` } // Method has request type Method struct { Name