Converti XBRL in iXBRL in Python

Contents
[ ]

Aspose.Finance supporta la conversione dei file XBRL in IXBRL passando un’istanza delSalvaOpzioni classe alXbrlDocument.save metodo. Per salvare il documento è in formato IXBRL, impostare il fileSaveOptions.save_format aSalvaFormato.IXBRL.

Il seguente frammento di codice C# mostra come convertire XBRL nel formato IXBRL.

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