OFX İstek ve Yanıt Dosyalarını C# API'e Dönüştür

Aspose.Finance for .NET, OFX istek ve yanıt dosyalarının 1.03 ve 2.2 biçimleri arasında dönüştürülmesini destekler. Aşağıdaki C# örnekleri, OFX istek ve yanıt dosyalarının API kullanılarak 1.03 formatından 2.2 formatına dönüştürülmesini göstermektedir.

OFX İstek Dosyasını 1.03’ten 2.2 formatına .NET’e dönüştürün

// 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);

OFX Yanıt Dosyasını 1.03’ten 2.2 formatına .NET’e dönüştürün

// 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);