Code Monkey home page Code Monkey logo

Comments (7)

aclindsa avatar aclindsa commented on July 20, 2024 1

@JohnStarich Absolutely feel free to give it a shot!

from ofxgo.

aclindsa avatar aclindsa commented on July 20, 2024

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.

JohnStarich avatar JohnStarich commented on July 20, 2024

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.

JohnStarich avatar JohnStarich commented on July 20, 2024

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.

JohnStarich avatar JohnStarich commented on July 20, 2024

Thanks for the quick review/merge! 😄
I've put up a PR for the last piece, too #19

from ofxgo.

JohnStarich avatar JohnStarich commented on July 20, 2024

friendly poke 👉 @aclindsa

from ofxgo.

JohnStarich avatar JohnStarich commented on July 20, 2024

Thanks a bunch @aclindsa! 🎉

from ofxgo.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.