Parse OFX (Open Financial Exchange document) using Coldfusion
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
add a comment |
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
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
add a comment |
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
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
coldfusion ofx
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
Might try the opensource OFX4J java lib.
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Might try the opensource OFX4J java lib.
add a comment |
Might try the opensource OFX4J java lib.
add a comment |
Might try the opensource OFX4J java lib.
Might try the opensource OFX4J java lib.
answered Jan 2 at 1:08
coldfusionPaulcoldfusionPaul
5627
5627
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Jan 1 at 21:17
James A MohlerJames A Mohler
7,135123353
7,135123353
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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