Convert OFX Request and Response Files in C# API

Aspose.Finance for .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

// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET
// Working directories
string sourceDir = RunExamples.Get_SourceDirectory();
string outputDir = RunExamples.Get_OutputDirectory();
OfxRequestDocument document = new OfxRequestDocument(sourceDir + @"bankTransactionReq.sgml");
document.Save(outputDir + @"bankTransactionReq.xml", OfxVersionEnum.V2x);

Convert OFX Response File from 1.03 to 2.2 format in .NET

// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET
// Working directories
string sourceDir = RunExamples.Get_SourceDirectory();
string outputDir = RunExamples.Get_OutputDirectory();
OfxResponseDocument document = new OfxResponseDocument(sourceDir + @"bankTransactionRes.sgml");
document.Save(outputDir + @"bankTransactionRes.xml", OfxVersionEnum.V2x);