Comments (7)
@JohnStarich Absolutely feel free to give it a shot!
from ofxgo.
Hah! SGML is a thorn in my side. For the full set of the elements which may be left un-closed with the SGML versions of OFX, see https://github.com/aclindsa/ofxgo/blob/master/leaf_elements.go.
As you've already found, I used a feature of Go's existing XML decoder for parsing SGML responses (though I had to modify it slightly). I don't see any reason my existing fork of the library couldn't be modified further to omit closing tags for the same list from above. I didn't make the similar modification for encoding requests mostly because it seemed like I was going to be able to get away with it, not because I have an issue with doing it.
I believe this modification should be acceptable for all SGML-based OFX versions (i.e. 1xx), and should not need to be USAA-specific.
from ofxgo.
Oh, excellent! I didn't see you had the complete list already 🎉
Sweet. Yeah, I thought that might've happened 👍 Sometimes it's best to just get things working first! 😉
Nice, ok. I'm not very familiar with the Go XML encoder, but I can give it a shot if you like?
from ofxgo.
To my surprise, this ended up being pretty easy! (unless I missed something 😨)
I've pushed a new PR up for your review in the xml
repo.
I think the calling syntax in ofxgo
would look super similar to how the decoder is set up today.
from ofxgo.
Thanks for the quick review/merge! 😄
I've put up a PR for the last piece, too #19
from ofxgo.
friendly poke 👉 @aclindsa
from ofxgo.
Thanks a bunch @aclindsa! 🎉
from ofxgo.
Related Issues (12)
- slow go-get because of aclindsa/go dep HOT 3
- BMO produces invalid XML for BANKMSGSETV1 HOT 6
- "Windows" new line required for some banks HOT 12
- Unable to connect to any of my banks using this HOT 2
- Pending transactions missing from query responses HOT 4
- Is There List of Finance Institution Tested HOT 3
- Don't make people search for usage examples HOT 1
- can't parse response: OFX SECURITY header not NONE HOT 7
- Unable to `go get` this package HOT 2
- `ofx transactions-cc` panics for two credit card accounts
- XML syntax error on line 1: element <MESSAGE> closed by </STATUS> HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxgo.