C#'deki XBRL ve iXBRL dosyalarını oku
Contents
[
Hide
]
C#‘deki XBRL örnek dosyasını okuyun
Aspose.Finance, XBRL belgelerinin okunmasını destekler. Bunun için kullanabilirsinizXbrlBelgesi geçerli bir XBRL örnek dosyasının adını parametre olarak ileterek sınıf.
Aşağıdaki C# kod parçacığı, bir XBRL örnek belgesinin okunmasını gösterir.
This file contains hidden or 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; |
C#‘deki iXBRL dosyasını oku
Aspose.Finance, iXBRL örnek belgelerinin okunmasını destekler. Bunun için API,InlineXbrlDocument sınıf. YapıcıInlineXbrlDocumentclass, geçerli bir iXBRL dosyasının adını kabul eder.
Aşağıdaki C# kod parçacığı, bir iXBRL örnek belgesinin okunmasını gösterir.
This file contains hidden or 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; |