Convert XBRL to iXBRL in C#

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.SaveFormat to SaveFormat.IXBRL.

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

// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET
// Working directories
string sourceDir = RunExamples.Get_SourceDirectory();
string outputDir = RunExamples.Get_OutputDirectory();
XbrlDocument document = new XbrlDocument(sourceDir + @"IdScopeContextPeriodStartAfterEnd.xml");
// Set save options
SaveOptions saveOptions = new SaveOptions();
saveOptions.SaveFormat = SaveFormat.IXBRL;
// Save file to XLSX format
document.Save(outputDir + @"ConvertXbrlToIXbrl_out.ixbrl", saveOptions);