Konvertieren Sie OFX Request- und Response-Dateien in C# API

Aspose.Finance for .NET unterstützt die Konvertierung von OFX Anfrage- und Antwortdateien zwischen den Formaten 1.03 und 2.2. Die folgenden C#-Beispiele veranschaulichen die Konvertierung von OFX-Anforderungs- und -Antwortdateien vom 1.03-Format in das 2.2-Format unter Verwendung von API.

Konvertieren Sie die Anforderungsdatei OFX vom 1.03- in das 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);

Konvertieren Sie die OFX-Antwortdatei vom 1.03- in das 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);