1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-11-22 03:30:04 -05:00

profile: Save message set name somewhere other than XMLName

Of course the same information is available there, but having it brought
out as its own field seems more convenient and intuitive for users.
This commit is contained in:
Aaron Lindsay 2017-04-03 19:56:16 -04:00
parent f56a061627
commit 59a29e18a5

View File

@ -53,6 +53,7 @@ type SignonInfo struct {
type MessageSet struct {
XMLName xml.Name // <xxxMSGSETVn>
Name string // <xxxMSGSETVn> (copy of XMLName.Local)
Ver String `xml:"MSGSETCORE>VER"` // Message set version - should always match 'n' in <xxxMSGSETVn>
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 <xxxMSGSET>
tok, err = nextNonWhitespaceToken(d)