اقرأ ملفات XBRL و iXBRL في C#
Contents
[
Hide
]
اقرأ XBRL ملف المثيل في C#
يدعم Aspose.Finance قراءة وثائق XBRL. لهذا ، يمكنك استخدام ملفXbrl وثيقة فئة عن طريق تمرير اسم ملف مثيل XBRL صالح كمعامل.
يوضح مقتطف التعليمات البرمجية C# التالي قراءة مستند نسخة 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; |
اقرأ iXBRL ملف في C#
يدعم Aspose.Finance قراءة وثائق النسخة iXBRL. لهذا ، يوفر API امتدادInlineXbrlDocument صف دراسي. منشئ ملفInlineXbrlDocumentالفئة تقبل اسم ملف iXBRL صالح.
يوضح مقتطف التعليمات البرمجية C# التالي قراءة مستند نسخة 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; |