Help with xml to struct


I am using thick pakage for soap:

OK, I need to transform this xml to struct:

I was trying to do it like this but with no luck:

type PollResponse struct {
	XMLName xml.Name `xml:"return"`
	User    User     `xml:"user"`

type User struct {
	Value []Value `xml:"user"`

type Value struct {
	active bool `xml:"active"`


I recently tried to distill the essential into this Q&A: . Maybe that helps.

I also notice your active field of the Value struct starts with a lower case letter.


thank you.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.