Hello all,
I need to parse XML messages from a source I don't control. Each one has an envelope node that shows its source, and the first node in that envelope encodes the message type. I'm trying to compose structs to make it easier to do the parsing, and I put a stripped-down example for just one message type on the playground here:
https://play.golang.org/p/tszPHRM-mMO
What's puzzling me here is that, after unmarshaling, `v.Envelope.XMLName.Local` is empty. I'd expect it to contain "proto-alpha" from the example XML in the source; it does pick up the version attribute that's set on the envelope node, just not the `xml.Name` value.
Can anyone share some clues about what I'm doing wrong here?
Thanks very much,
-lars
--
lars r. damerow
https://keybase.io/ldamerow
F29F 160D B23C 3237 1BA3 FCD5 4E13 C775 36B3 ABCA