Convert XBRL to iXBRL in Python

Contents
[ ]

Aspose.Finance supports converting XBRL files to IXBRL by passing an instance of the SaveOptions class to the XbrlDocument.save method. To save the document is IXBRL format, set the SaveOptions.save_format to SaveFormat.IXBRL.

The following C# code snippet demonstrates how convert XBRL to IXBRL format.

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