diff --git a/profile.go b/profile.go index db3ea94..e133e8d 100644 --- a/profile.go +++ b/profile.go @@ -53,6 +53,7 @@ type SignonInfo struct { type MessageSet struct { XMLName xml.Name // + Name string // (copy of XMLName.Local) Ver String `xml:"MSGSETCORE>VER"` // Message set version - should always match 'n' in Url String `xml:"MSGSETCORE>URL"` // URL where messages in this set are to be set OfxSec String `xml:"MSGSETCORE>OFXSEC"` // NONE or 'TYPE 1' @@ -89,6 +90,7 @@ func (msl *MessageSetList) UnmarshalXML(d *xml.Decoder, start xml.StartElement) } else { return errors.New("Invalid MSGSETLIST formatting") } + msgset.Name = msgset.XMLName.Local // Eat ending tags for tok, err = nextNonWhitespaceToken(d)