我花了相当长的时间寻找Coldfusion解析OFX文件的例子,但什么也找不到。有没有人可以帮我写一些示例代码或者给我指出正确的方向?
发布于 2019-01-02 09:08:06
可以尝试一下开源的OFX4J java库。
发布于 2019-01-02 05:17:19
我已经构建了一个库,可以解析出像.docx这样的ZIP文件。你可能想试一试。
首先看看是否可以解压缩并读取这些文件
string function extractDocx(required string pathToDocX) {
cfzip(action="read", file=arguments.pathToDocx, entrypath="word\document.xml", variable="this.xmlString");
this.xmlPara = xmlparse(this.xmlString).document.body;
return ReadNode(this.xmlPara);
}然后,结果需要转到递归解析器。请参见:
https://coldfusion.adobe.com/2018/11/extracting-text-html-out-word-docx-files/ https://github.com/jmohler1970/WordExtractor_demo https://github.com/jmohler1970/WordExtractor
https://stackoverflow.com/questions/53994849
复制相似问题