Convert OFX Request and Response Files in C# API
Contents
[
Hide
]
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
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
// 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
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
// 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); |