Konvertera XBRL till iXBRL till Python

Contents
[ ]

Aspose.Finance stöder konvertering av XBRL-filer till IXBRL genom att skicka en instans avSpara Alternativ klass tillXbrlDocument.save metod. För att spara dokumentet i IXBRL-format, ställ inSaveOptions.save_format tillSaveFormat.IXBRL.

Följande C#-kodavsnitt visar hur man konverterar XBRL till 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)