package response import ( "encoding/xml" ) type HistoricMarketDataEvent struct { XMLName xml.Name `xml:"historicMarketData"` InstructionId string `xml:"instructionId"` Urls []string `xml:"urls>url"` } func (this *HistoricMarketDataEvent) GetId() string { return this.InstructionId } func NewHistoricMarketData(data string) *HistoricMarketDataEvent { r := HistoricMarketDataEvent{} err := xml.Unmarshal([]byte(data), &r) if err != nil { return nil } return &r }