Parse OFX (Open Financial Exchange document) using Coldfusion












1















I searched for quite some time to find examples of Coldfusion parsing OFX files but can't find anything. Can anyone please assist with some sample code or point me in the right direction?










share|improve this question


















  • 1





    I couldn’t find how OFX files are formatted with some quick searches, but Wikipedia referenced XML. Have you tried XMLParse()? If you can’t find a library to read the file, you might have to parse it yourself.

    – Redtopia
    Jan 1 at 14:58






  • 1





    ... Might also be SGML. Have you looked into using a java library? May be an exising lib you could use that would save you from reinventing the wheel.

    – Ageax
    Jan 1 at 21:02
















1















I searched for quite some time to find examples of Coldfusion parsing OFX files but can't find anything. Can anyone please assist with some sample code or point me in the right direction?










share|improve this question


















  • 1





    I couldn’t find how OFX files are formatted with some quick searches, but Wikipedia referenced XML. Have you tried XMLParse()? If you can’t find a library to read the file, you might have to parse it yourself.

    – Redtopia
    Jan 1 at 14:58






  • 1





    ... Might also be SGML. Have you looked into using a java library? May be an exising lib you could use that would save you from reinventing the wheel.

    – Ageax
    Jan 1 at 21:02














1












1








1








I searched for quite some time to find examples of Coldfusion parsing OFX files but can't find anything. Can anyone please assist with some sample code or point me in the right direction?










share|improve this question














I searched for quite some time to find examples of Coldfusion parsing OFX files but can't find anything. Can anyone please assist with some sample code or point me in the right direction?







coldfusion ofx






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 1 at 10:52









Marthinus StrydomMarthinus Strydom

1309




1309








  • 1





    I couldn’t find how OFX files are formatted with some quick searches, but Wikipedia referenced XML. Have you tried XMLParse()? If you can’t find a library to read the file, you might have to parse it yourself.

    – Redtopia
    Jan 1 at 14:58






  • 1





    ... Might also be SGML. Have you looked into using a java library? May be an exising lib you could use that would save you from reinventing the wheel.

    – Ageax
    Jan 1 at 21:02














  • 1





    I couldn’t find how OFX files are formatted with some quick searches, but Wikipedia referenced XML. Have you tried XMLParse()? If you can’t find a library to read the file, you might have to parse it yourself.

    – Redtopia
    Jan 1 at 14:58






  • 1





    ... Might also be SGML. Have you looked into using a java library? May be an exising lib you could use that would save you from reinventing the wheel.

    – Ageax
    Jan 1 at 21:02








1




1





I couldn’t find how OFX files are formatted with some quick searches, but Wikipedia referenced XML. Have you tried XMLParse()? If you can’t find a library to read the file, you might have to parse it yourself.

– Redtopia
Jan 1 at 14:58





I couldn’t find how OFX files are formatted with some quick searches, but Wikipedia referenced XML. Have you tried XMLParse()? If you can’t find a library to read the file, you might have to parse it yourself.

– Redtopia
Jan 1 at 14:58




1




1





... Might also be SGML. Have you looked into using a java library? May be an exising lib you could use that would save you from reinventing the wheel.

– Ageax
Jan 1 at 21:02





... Might also be SGML. Have you looked into using a java library? May be an exising lib you could use that would save you from reinventing the wheel.

– Ageax
Jan 1 at 21:02












2 Answers
2






active

oldest

votes


















2














Might try the opensource OFX4J java lib.






share|improve this answer































    -1














    I have built a library that parses out ZIP XML files like .docx. You might want to try it out.



    First see if you can unzip and read the files



    string function extractDocx(required string pathToDocX) {

    cfzip(action="read", file=arguments.pathToDocx, entrypath="worddocument.xml", variable="this.xmlString");

    this.xmlPara = xmlparse(this.xmlString).document.body;


    return ReadNode(this.xmlPara);
    }


    The result then needs to go to a recursive parser. See:



    https://coldfusion.adobe.com/2018/11/extracting-text-html-out-word-docx-files/
    https://github.com/jmohler1970/WordExtractor_demo
    https://github.com/jmohler1970/WordExtractor






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53994849%2fparse-ofx-open-financial-exchange-document-using-coldfusion%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      Might try the opensource OFX4J java lib.






      share|improve this answer




























        2














        Might try the opensource OFX4J java lib.






        share|improve this answer


























          2












          2








          2







          Might try the opensource OFX4J java lib.






          share|improve this answer













          Might try the opensource OFX4J java lib.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 1:08









          coldfusionPaulcoldfusionPaul

          5627




          5627

























              -1














              I have built a library that parses out ZIP XML files like .docx. You might want to try it out.



              First see if you can unzip and read the files



              string function extractDocx(required string pathToDocX) {

              cfzip(action="read", file=arguments.pathToDocx, entrypath="worddocument.xml", variable="this.xmlString");

              this.xmlPara = xmlparse(this.xmlString).document.body;


              return ReadNode(this.xmlPara);
              }


              The result then needs to go to a recursive parser. See:



              https://coldfusion.adobe.com/2018/11/extracting-text-html-out-word-docx-files/
              https://github.com/jmohler1970/WordExtractor_demo
              https://github.com/jmohler1970/WordExtractor






              share|improve this answer




























                -1














                I have built a library that parses out ZIP XML files like .docx. You might want to try it out.



                First see if you can unzip and read the files



                string function extractDocx(required string pathToDocX) {

                cfzip(action="read", file=arguments.pathToDocx, entrypath="worddocument.xml", variable="this.xmlString");

                this.xmlPara = xmlparse(this.xmlString).document.body;


                return ReadNode(this.xmlPara);
                }


                The result then needs to go to a recursive parser. See:



                https://coldfusion.adobe.com/2018/11/extracting-text-html-out-word-docx-files/
                https://github.com/jmohler1970/WordExtractor_demo
                https://github.com/jmohler1970/WordExtractor






                share|improve this answer


























                  -1












                  -1








                  -1







                  I have built a library that parses out ZIP XML files like .docx. You might want to try it out.



                  First see if you can unzip and read the files



                  string function extractDocx(required string pathToDocX) {

                  cfzip(action="read", file=arguments.pathToDocx, entrypath="worddocument.xml", variable="this.xmlString");

                  this.xmlPara = xmlparse(this.xmlString).document.body;


                  return ReadNode(this.xmlPara);
                  }


                  The result then needs to go to a recursive parser. See:



                  https://coldfusion.adobe.com/2018/11/extracting-text-html-out-word-docx-files/
                  https://github.com/jmohler1970/WordExtractor_demo
                  https://github.com/jmohler1970/WordExtractor






                  share|improve this answer













                  I have built a library that parses out ZIP XML files like .docx. You might want to try it out.



                  First see if you can unzip and read the files



                  string function extractDocx(required string pathToDocX) {

                  cfzip(action="read", file=arguments.pathToDocx, entrypath="worddocument.xml", variable="this.xmlString");

                  this.xmlPara = xmlparse(this.xmlString).document.body;


                  return ReadNode(this.xmlPara);
                  }


                  The result then needs to go to a recursive parser. See:



                  https://coldfusion.adobe.com/2018/11/extracting-text-html-out-word-docx-files/
                  https://github.com/jmohler1970/WordExtractor_demo
                  https://github.com/jmohler1970/WordExtractor







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 1 at 21:17









                  James A MohlerJames A Mohler

                  7,135123353




                  7,135123353






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53994849%2fparse-ofx-open-financial-exchange-document-using-coldfusion%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Monofisismo

                      Angular Downloading a file using contenturl with Basic Authentication

                      Olmecas