1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-11-14 17:20:04 -05:00
ofxgo/leaf_elements.go

344 lines
4.8 KiB
Go
Raw Normal View History

2017-03-11 07:15:15 -05:00
package ofxgo
// A list of all the leaf elements in OFX 1.0.3 (the last SGML version of the
// spec). These are all the elements that are possibly left unclosed, and which
// can have no children of their own. Fortunately these two sets of elements
// are the same. We use this list when parsing to remove ambiguities about
// element nesting.
//
// Generated using the following command with the 1.0.3 SPEC .dtd file:
2017-04-03 20:48:01 -04:00
// # sed -rn 's/^<!ELEMENT\s+([A-Z0-9]+)\s+-\s+[oO]\s+%.*TYPE\s*>.*$/\t"\1",/p' *.dtd | sort
2017-03-11 07:15:15 -05:00
var ofxLeafElements = []string{
"ACCESSKEY",
2017-04-03 20:48:01 -04:00
"ACCRDINT",
2017-03-11 07:15:15 -05:00
"ACCTID",
"ACCTKEY",
"ACCTREQUIRED",
"ACCTTYPE",
2017-04-03 19:50:54 -04:00
"ADDR1",
"ADDR2",
"ADDR3",
2017-03-11 07:15:15 -05:00
"ADJAMT",
"ADJDATE",
"ADJDESC",
"ADJNO",
"APPID",
"APPVER",
2017-04-03 20:48:01 -04:00
"ASSETCLASS",
"AUCTION",
2017-03-11 07:15:15 -05:00
"AUTHTOKEN",
"AUTHTOKENFIRST",
"AUTHTOKENINFOURL",
"AUTHTOKENLABEL",
"AVAILACCTS",
2017-04-03 20:48:01 -04:00
"AVAILCASH",
"AVGCOSTBASIS",
2017-03-11 07:15:15 -05:00
"BALAMT",
"BALCLOSE",
2017-04-03 20:48:01 -04:00
"BALDNLD",
2017-03-11 07:15:15 -05:00
"BALMIN",
"BALOPEN",
"BALTYPE",
"BANKID",
"BILLREFINFO",
"BRANCHID",
2017-04-03 20:48:01 -04:00
"BROKERID",
"BUYPOWER",
"BUYTYPE",
"CALLPRICE",
"CALLTYPE",
2017-03-11 07:15:15 -05:00
"CANADDPAYEE",
"CANBILLPAY",
"CANCELWND",
"CANEMAIL",
"CANMODMDLS",
"CANMODPMTS",
"CANMODXFERS",
"CANNOTIFY",
"CANPENDING",
"CANRECUR",
"CANSCHED",
"CANUSEDESC",
"CANUSERANGE",
"CASESEN",
"CHARTYPE",
2017-04-03 20:48:01 -04:00
"CHECKING",
2017-03-11 07:15:15 -05:00
"CHECKNUM",
"CHGPINFIRST",
"CHGUSERINFO",
"CHKANDDEB",
"CHKERROR",
"CHKNUMEND",
"CHKNUMSTART",
"CHKSTATUS",
"CITY",
"CLIENTACTREQ",
"CLIENTROUTING",
"CLIENTUID",
"CLIENTUIDREQ",
"CLOSINGAVAIL",
"CLTCOOKIE",
"CODE",
2017-04-03 20:48:01 -04:00
"COMMISSION",
2017-03-11 07:15:15 -05:00
"CONFMSG",
"CORRECTACTION",
"CORRECTFITID",
"COUNTRY",
2017-04-03 20:48:01 -04:00
"COUPONFREQ",
"COUPONRT",
2017-03-11 07:15:15 -05:00
"CREDITLIMIT",
"CSPHONE",
"CURDEF",
"CURRATE",
"CURSYM",
"DATEBIRTH",
"DAYPHONE",
"DAYSTOPAY",
"DAYSWITH",
"DEBADJ",
2017-04-03 20:48:01 -04:00
"DEBTCLASS",
"DEBTTYPE",
"DENOMINATOR",
2017-03-11 07:15:15 -05:00
"DEPANDCREDIT",
"DESC",
"DFLTDAYSTOPAY",
"DIFFFIRSTPMT",
"DIFFLASTPMT",
"DOMXFERFEE",
"DSCAMT",
"DSCDATE",
"DSCDESC",
"DSCRATE",
"DTACCTUP",
"DTASOF",
2017-04-03 20:48:01 -04:00
"DTAUCTION",
2017-03-11 07:15:15 -05:00
"DTAVAIL",
2017-04-03 20:48:01 -04:00
"DTCALL",
2017-03-11 07:15:15 -05:00
"DTCHANGED",
"DTCLIENT",
"DTCLOSE",
2017-04-03 20:48:01 -04:00
"DTCOUPON",
2017-03-11 07:15:15 -05:00
"DTCREATED",
"DTDUE",
"DTEND",
"DTEXPIRE",
"DTINFOCHG",
2017-04-03 20:48:01 -04:00
"DTMAT",
2017-03-11 07:15:15 -05:00
"DTNEXT",
"DTOPEN",
2017-04-03 20:48:01 -04:00
"DTPLACED",
2017-03-11 07:15:15 -05:00
"DTPMTDUE",
"DTPMTPRC",
"DTPOSTED",
"DTPOSTEND",
"DTPOSTSTART",
2017-04-03 20:48:01 -04:00
"DTPRICEASOF",
2017-03-11 07:15:15 -05:00
"DTPROFUP",
"DTPURCHASE",
"DTSERVER",
2017-04-03 20:48:01 -04:00
"DTSETTLE",
2017-03-11 07:15:15 -05:00
"DTSTART",
2017-04-03 20:48:01 -04:00
"DTTRADE",
2017-03-11 07:15:15 -05:00
"DTUSER",
"DTXFERPRC",
"DTXFERPRJ",
2017-04-03 20:48:01 -04:00
"DTYIELDASOF",
"DURATION",
2017-03-11 07:15:15 -05:00
"EMAIL",
"EVEPHONE",
"EXTDPMTCHK",
"EXTDPMTFOR",
"FAXPHONE",
"FEE",
"FEEMSG",
2017-04-03 20:48:01 -04:00
"FEES",
"FIASSETCLASS",
2017-03-11 07:15:15 -05:00
"FICERTID",
"FID",
2017-04-03 20:48:01 -04:00
"FIID",
2017-03-11 07:15:15 -05:00
"FINALAMT",
"FINAME",
"FINCHG",
"FIRSTNAME",
"FITID",
2017-04-03 20:48:01 -04:00
"FRACCASH",
2017-03-11 07:15:15 -05:00
"FREQ",
"FROM",
2017-04-03 20:48:01 -04:00
"GAIN",
2017-03-11 07:15:15 -05:00
"GENUSERKEY",
"GETMIMESUP",
"HASEXTDPMT",
2017-04-03 20:48:01 -04:00
"HELDINACCT",
2017-03-11 07:15:15 -05:00
"IDSCOPE",
2017-04-03 20:48:01 -04:00
"INCBAL",
2017-03-11 07:15:15 -05:00
"INCIMAGES",
2017-04-03 20:48:01 -04:00
"INCOMETYPE",
"INCOO",
2017-03-11 07:15:15 -05:00
"INITIALAMT",
"INTLXFERFEE",
2017-04-03 20:48:01 -04:00
"INVACCTTYPE",
2017-03-11 07:15:15 -05:00
"INVALIDACCTTYPE",
"INVDATE",
"INVDESC",
"INVNO",
"INVPAIDAMT",
"INVTOTALAMT",
"LANGUAGE",
"LASTNAME",
2017-04-03 20:48:01 -04:00
"LIMITPRICE",
2017-03-11 07:15:15 -05:00
"LITMAMT",
"LITMDESC",
2017-04-03 20:48:01 -04:00
"LOAD",
2017-03-11 07:15:15 -05:00
"LOSTSYNC",
"MAILSUP",
2017-04-03 20:48:01 -04:00
"MARGINBALANCE",
"MARKDOWN",
"MARKUP",
2017-03-11 07:15:15 -05:00
"MAX",
"MEMO",
"MESSAGE",
"MFACHALLENGEFIRST",
"MFACHALLENGESUPT",
"MFAPHRASEA",
"MFAPHRASEID",
"MFAPHRASELABEL",
2017-04-03 20:48:01 -04:00
"MFTYPE",
2017-03-11 07:15:15 -05:00
"MIDDLENAME",
"MIN",
"MINPMTDUE",
2017-04-03 20:48:01 -04:00
"MINUNITS",
2017-03-11 07:15:15 -05:00
"MKTGINFO",
2017-04-03 20:48:01 -04:00
"MKTVAL",
2017-03-11 07:15:15 -05:00
"MODELWND",
"MODPENDING",
"NAME",
2017-04-03 20:48:01 -04:00
"NEWUNITS",
2017-03-11 07:15:15 -05:00
"NEWUSERPASS",
"NINSTS",
"NONCE",
2017-04-03 20:48:01 -04:00
"NUMERATOR",
2017-03-11 07:15:15 -05:00
"OFXSEC",
2017-04-03 20:48:01 -04:00
"OLDUNITS",
"OODNLD",
"OPTACTION",
"OPTBUYTYPE",
"OPTIONLEVEL",
"OPTSELLTYPE",
"OPTTYPE",
2017-03-11 07:15:15 -05:00
"ORG",
2017-04-03 20:48:01 -04:00
"PARVALUE",
2017-03-11 07:15:15 -05:00
"PAYACCT",
"PAYANDCREDIT",
"PAYEEID",
"PAYEELSTID",
"PAYINSTRUCT",
2017-04-03 20:48:01 -04:00
"PERCENT",
2017-03-11 07:15:15 -05:00
"PHONE",
"PINCH",
"PMTBYADDR",
"PMTBYPAYEEID",
"PMTBYXFER",
"PMTPRCCODE",
2017-04-03 20:48:01 -04:00
"POSDNLD",
2017-03-11 07:15:15 -05:00
"POSTALCODE",
"POSTPROCWND",
2017-04-03 20:48:01 -04:00
"POSTYPE",
2017-03-11 07:15:15 -05:00
"PROCDAYSOFF",
"PROCENDTM",
"PURANDADV",
2017-04-03 20:48:01 -04:00
"RATING",
2017-03-11 07:15:15 -05:00
"RECSRVRTID",
"REFNUM",
"REFRESH",
"REFRESHSUPT",
2017-04-03 20:48:01 -04:00
"REINVCG",
"REINVDIV",
2017-03-11 07:15:15 -05:00
"REJECTIFMISSING",
2017-04-03 20:48:01 -04:00
"RELFITID",
"RELTYPE",
2017-03-11 07:15:15 -05:00
"RESPFILEER",
2017-04-03 20:48:01 -04:00
"RESTRICTION",
"SECLISTRQDNLD",
"SECNAME",
"SECURED",
2017-03-11 07:15:15 -05:00
"SECURITYNAME",
2017-04-03 20:48:01 -04:00
"SELLALL",
"SELLREASON",
"SELLTYPE",
2017-03-11 07:15:15 -05:00
"SESSCOOKIE",
"SEVERITY",
2017-04-03 20:48:01 -04:00
"SHORTBALANCE",
"SHPERCTRCT",
2017-03-11 07:15:15 -05:00
"SIC",
"SIGNONREALM",
"SPACES",
"SPECIAL",
"SPNAME",
"SRVRTID",
"STATE",
2017-04-03 20:48:01 -04:00
"STOCKTYPE",
"STOPPRICE",
2017-03-11 07:15:15 -05:00
"STPCHKFEE",
2017-04-03 20:48:01 -04:00
"STRIKEPRICE",
2017-03-11 07:15:15 -05:00
"STSVIAMODS",
2017-04-03 20:48:01 -04:00
"SUBACCT",
"SUBACCTFROM",
"SUBACCTSEC",
"SUBACCTTO",
2017-03-11 07:15:15 -05:00
"SUBJECT",
"SUPTXDL",
"SVC",
"SVCSTATUS",
2017-04-03 20:48:01 -04:00
"SWITCHALL",
2017-03-11 07:15:15 -05:00
"SYNCMODE",
"TAN",
2017-04-03 20:48:01 -04:00
"TAXES",
"TAXEXEMPT",
2017-03-11 07:15:15 -05:00
"TAXID",
"TEMPPASS",
2017-04-03 20:48:01 -04:00
"TFERACTION",
"TICKER",
2017-03-11 07:15:15 -05:00
"TO",
"TOKEN",
"TOKENONLY",
2017-04-03 20:48:01 -04:00
"TOTAL",
2017-03-11 07:15:15 -05:00
"TOTALFEES",
"TOTALINT",
2017-04-03 20:48:01 -04:00
"TRANDNLD",
2017-03-11 07:15:15 -05:00
"TRANSPSEC",
"TRNAMT",
"TRNTYPE",
"TRNUID",
"TSKEYEXPIRE",
"TSPHONE",
2017-04-03 20:48:01 -04:00
"TYPEDESC",
"UNIQUEID",
"UNIQUEIDTYPE",
"UNITPRICE",
"UNITS",
"UNITSSTREET",
"UNITSUSER",
"UNITTYPE",
2017-03-11 07:15:15 -05:00
"URL",
"USEHTML",
2017-04-03 19:50:54 -04:00
"USERCRED1",
"USERCRED1LABEL",
"USERCRED2",
"USERCRED2LABEL",
2017-03-11 07:15:15 -05:00
"USERID",
"USERKEY",
"USERPASS",
2017-04-03 20:48:01 -04:00
"USPRODUCTTYPE",
2017-03-11 07:15:15 -05:00
"VALUE",
"VER",
2017-04-03 20:48:01 -04:00
"WITHHOLDING",
2017-03-11 07:15:15 -05:00
"XFERDAYSWITH",
"XFERDEST",
"XFERDFLTDAYSTOPAY",
"XFERPRCCODE",
"XFERSRC",
2017-04-03 20:48:01 -04:00
"YIELD",
"YIELDTOCALL",
"YIELDTOMAT",
2017-03-11 07:15:15 -05:00
}