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 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c0585459-06af-4a37-9074-95e9d82df552%40www.fastmail.com.