Konvertera OFX förfrågnings- och svarsfiler till C# API

Aspose.Finance for .NET stöder konvertering av OFX förfrågnings- och svarsfiler mellan formaten 1.03 och 2.2. Följande C#-exempel visar att OFX-förfrågnings- och svarsfiler konverteras från 1.03-format till 2.2-format med API.

Konvertera OFX Request File från 1.03 till 2.2 format i .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);

Konvertera OFX svarsfil från 1.03 till 2.2 format i .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);