Wandeln Sie XBRL in iXBRL in Python um

Contents
[ ]

Aspose.Finance unterstützt die Konvertierung von XBRL-Dateien in IXBRL, indem eine Instanz von übergeben wirdOptionen speichern Klasse zumXbrlDocument.save Methode. Um das Dokument im IXBRL-Format zu speichern, stellen Sie das einSaveOptions.save_format zuSaveFormat.IXBRL.

Das folgende C#-Code-Snippet zeigt, wie XBRL in das IXBRL-Format konvertiert wird.

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