Leggi i file XBRL e iXBRL in C#
Contents
[
Hide
]
Leggi il file di istanza XBRL in C#
Aspose.Finance supporta la lettura di documenti XBRL. Per questo, puoi usare ilXbrlDocumento class passando il nome di un file di istanza XBRL valido come parametro.
Il seguente frammento di codice C# illustra la lettura di un documento di istanza XBRL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XbrlDocument document = new XbrlDocument(XbrlFilePath + @"IdScopeContextPeriodStartAfterEnd.xml"); | |
XbrlInstanceCollection xbrlInstances = document.XbrlInstances; | |
XbrlInstance xbrlInstance = xbrlInstances[0]; | |
List<Fact> facts = xbrlInstance.Facts; | |
SchemaRefCollection schemaRefs = xbrlInstance.SchemaRefs; | |
List<Context> contexts = xbrlInstance.Contexts; | |
List<Unit> units = xbrlInstance.Units; |
Leggi il file iXBRL in C#
Aspose.Finance supporta la lettura di documenti di istanza iXBRL. Per questo, lo API fornisce ilInlineXbrlDocument classe. Il costruttore delInlineXbrlDocumentclass accetta il nome di un file iXBRL valido.
Il seguente frammento di codice C# illustra la lettura di un documento di istanza iXBRL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InlineXbrlDocument document = new InlineXbrlDocument(XbrlFilePath + @"account_1.html"); | |
List<InlineFact> inlineFacts = document.Facts; | |
List<Context> contexts = document.Contexts; | |
List<Unit> units = document.Units; |