Convert OFX Request and Response Files in Python API
Contents
[
Hide
]
Aspose.Finance for Python via .NET supports converting OFX request and response files between 1.03 and 2.2 formats. The following C# examples demonstrate converting OFX request and response files from 1.03 format to 2.2 format using the API.
Convert OFX Request File from 1.03 to 2.2 format in .NET
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) |
Convert OFX Response File from 1.03 to 2.2 format in .NET
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) |