Sorry, it must be the end of the day and my mind is no longer working... So I have a type
type Tr struct { Td []*Td `xml:"http://www.w3.org/1999/xhtml td,omitempty" json:"td,omitempty"` XMLName xml.Name `xml:"http://www.w3.org/1999/xhtml tr,omitempty" json:"tr,omitempty"` } and fmt.Printf("%#v %#v\n", tr.Td, , tr.Td[*0*]) will output, []*main.Td{(*main.Td)(0xc4200271d0), (*main.Td)(0xc420027220), (*main.Td)(0xc420027270)} &main.Td{Colspan:"", Rowspan:"", Text:...}} but why fmt.Printf("%#v %#v\n", tr.Td, , tr.Td[*1*]) will give error?: panic: runtime error: index out of range I.e., how to access the second (and third) Td? Please help, my mind is no longer working. Thx. -- 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. For more options, visit https://groups.google.com/d/optout.