Convert OFX Request and Response Files in Python API

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

# 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

# Convert OFX Response File from 1.03 to 2.2 format
document = OfxResponseDocument(srcePath + "bankTransactionRes.sgml")
document.save(outputPath + "bankTransactionRes.xml", OfxVersionEnum.V2x)