转换 OFX 中的请求和响应文件 Python API
Contents
[
Hide
]
Aspose.Finance for Python via .NET 支持在 1.03 和 2.2 格式之间转换 OFX 请求和响应文件。下面的 C# 示例演示了使用 API 将 OFX 请求和响应文件从 1.03 格式转换为 2.2 格式。
将 OFX 请求文件从 1.03 格式转换为 .NET 中的 2.2 格式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert OFX Request File from 1.03 to 2.2 format | |
document = OfxRequestDocument(os.path.join(sourceDir, "bankTransactionReq.sgml")) | |
document.save(os.path.join(outputDir, "bankTransactionReq.xml"), OfxVersionEnum.V2x) |
将 OFX 响应文件从 1.03 格式转换为 .NET 中的 2.2 格式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert OFX Response File from 1.03 to 2.2 format | |
document = OfxResponseDocument(srcePath + "bankTransactionRes.sgml") | |
document.save(outputPath + "bankTransactionRes.xml", OfxVersionEnum.V2x) |