How can I load SRB 2024 in Aspose.Finance

Hi there,

I’m having issues loading the latest SRB taxonomy schema in Aspose.Finance. Does anyone have an example loading this(2024 Resolution Reporting | Single Resolution Board).

Currently, my dependencies are not handled correctly. Started bootstraping my code like this…

        XbrlDocument document = new XbrlDocument();
        XbrlInstanceCollection xbrlInstances = document.XbrlInstances;
        XbrlInstance xbrlInstance = xbrlInstances[xbrlInstances.Add()];
        SchemaRefCollection schemaRefs = xbrlInstance.SchemaRefs;
        schemaRefs.Add(@"www.eba.europa.eu\eu\fr\xbrl\ext\model.xsd", "http://www.eba.europa.eu/xbrl/ext/model");
        schemaRefs.Add(@"www.eba.europa.eu\eu\fr\xbrl\crr\dict\met\met.xsd", "http://www.eba.europa.eu/xbrl/crr/dict/met");
        schemaRefs.Add(@"www.srb.europa.eu\eu\fr\xbrl\dict\met\met.xsd", "http://www.srb.europa.eu/xbrl/dict/met");
        schemaRefs.Add(@"www.eba.europa.eu\eu\fr\xbrl\crr\func\func.xsd", "http://www.eba.europa.eu/xbrl/crr/func");
        schemaRefs.Add(@"www.srb.europa.eu\eu\fr\xbrl\fws\srf\eu-2015-63\2023-06-13\mod\eac-ind.xsd", "http://www.srb.europa.eu/xbrl/fws/srf/eu-2015-63/2022-04-23/mod/eac-ind");

but having exceptions after loading successfully my first dependency:

Aspose.Finance.Xbrl.XbrlException: ‘Can’t find http://www.eba.europa.eu/eu/fr/xbrl/ext/model.xsd’ on next code lin(schemaRefs.Add(@“www.eba.europa.eu\eu\fr\xbrl\crr\dict\met\met.xsd”)

Thanks

@mpilija,

You need to provide a valid folder (physical) path to .xsd file(s) for SchemaRefCollection.Add() method. See the document with example code for your reference.
https://docs.aspose.com/finance/net/create-xbrl-files/#add-schema-reference

Let us know if you still find any issue.

sorry for the delayed response. yes, I’m aware of the library and how should things work but the issue is that the taxonomy and related files are not in the same folder. .xsd root files are defined in catalog file like this:

image.png (4.6 KB)

and the whole taxonomy is distributed in folders/subfolders:

image.png (2.5 KB)

is there a way to load such taxonomy and how?

@mpilija,

Thanks for further details and screenshots.

We require thorough evaluation of your issue/requirements. We will investigate if this can be done/supported. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): FINANCENET-304

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.