I would like to unmarshall the value of an attribute X of specific node N to a struct field. Something like this:
var data = `<A id="A_ID">
<B id="B_ID">Something</B>
</A>
`
type A struct {
Id string `xml:"id,attr"` // A_ID
Name string `xml:"B.id,attr"` // B_ID
}
http://play.golang.org/p/U6daYJWVUX
As far as I was able to check this is not supported by Go. Am I correct, or am I missing something here?