mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-12-26 06:53:21 -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:
parent
f56a061627
commit
59a29e18a5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user