Convertir XBRL en iXBRL en Python

Contents
[ ]

Aspose.Finance prend en charge la conversion des fichiers XBRL en IXBRL en transmettant une instance deOptions d’enregistrement classe à laXbrlDocument.save méthode. Pour enregistrer le document au format IXBRL, définissez leSaveOptions.save_format àSaveFormat.IXBRL.

L’extrait de code C# suivant montre comment convertir XBRL au format 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)