XBRL'i Python'de iXBRL'e dönüştür
Contents
[
Hide
]
Aspose.Finance, XBRL dosyalarının bir örneğini geçirerek IXBRL’ye dönüştürmeyi destekler.Seçenekleri Kaydet sınıfaXbrlDocument.save yöntem. Belgeyi IXBRL biçiminde kaydetmek için,SaveOptions.save_format ileSaveFormat.IXBRL.
Aşağıdaki C# kod parçacığı, XBRL’in IXBRL formatına nasıl dönüştürüldüğünü gösterir.
This file contains 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
//Enable cache service, this service will cache schema and link base file, and use the local file directly in the next load | |
LocalCacheService.enable_service("D:\\xbrl\\cache") | |
document = XbrlDocument(sourcePath + "Id-Scope-Context-Period-Start-After-End.xml") | |
# Set save options | |
Opts = SaveOptions() | |
Opts.save_format = SaveFormat.IXBRL | |
# Save file to iXBRL format | |
document.save(outputPath + "Converted-Xbrl-To-IXBRL_out.ixbrl", Opts) |