...
- At the processor’s default XBRL settings folder “%APPDATA%\Roaming\AMANAconsulting”.
- At the processor’s XBRL cache folder, which can be defined in the XbrlSetting’s XbrlFileCachePath XBRLSetting’s XBRLFileCachePath property. The default value for this property is “%APPDATA%\AMANAconsulting\XBRLCache”.
- At the location, where the engine’s .dll files are stored.
...
The Validate(GenericLinkbaseContainer container = null) function has an optional parameter of type GenericLinkbaseContainertype GenericLinkbaseContainer, which contains all generic links. If it exists, all the contained links are validated as well. After calling the Validate method, the TaxonomyResultSet property of the XbrlTaxonomy will be filled. Each item within this result set is a single validation error. To get all items, call use the TaxonomyResultSet.GetItems() method, which will return an IEnumerable of IValidationResult objects. The most important properties of IValidationResult are:
...
It is also possible to pass a Stream or an a XmlReader to this method:
...
When loading an instance document, the XBRL taxonomies which taxonomies which are referred referenced by the instance, will also be loaded. The The instance file can be validated against the XBRL schema and validation rules defined in the referenced taxonomy files by calling the method XbrlDocument.Validate(bool validateXbrlTaxonomies, bool attachResultsToFacts, GenericLinkbaseContainer container = null):
...
Code Block | ||||
---|---|---|---|---|
| ||||
using AMANA.XBRL.Engine.Plugin.FormulaLinkbase; var processor = new Processor(); XbrlDocument instanceDocument = processor.LoadXbrlDocument(@"C:\path\instance.xbrl"); instanceDocument.ValidateIncludingFormula( validateTaxonomies: false, verbose: false, attachResultsToFacts: false, includeIds: new List<string>(), excludeIds: new List<string>(), enableTPL: true); IEnumerable<IValidationResult> results = instanceDocument.DocumentResultSet.GetItems(); |
This method ValidateIncludingFormula method ValidateIncludingFormula first performs XBRL instance validation with optional taxonomy validation because the instance document has to be valid according to XML and XBRL standards before being able to perform further formula validation. If XBRL instance validation fails, the formula validation will not run. The result of the formula validation is included in the DocumentResultSet property of the XbrlDocument class.
...
Many authorities define filing rules, a set of additional rules which are not defined in the XBRL taxonomy itself. Hence those rules are manually programmed in the Engine DLL files. If the filing rules are updated, an update of the engine is also will be needed. To run file rule validaitons for an XBRL instance document, an FilingRulesValidator object must be created. In the following codeblock, a method ValidateInstance is written which demonstrate how to use the FilingRulesValidator
...
Generating XBRL Instance
AMANA.XBRL.Engine facilitates seamless allows a smooth XBRL Instance generation process. The instance generation process can easily be organized into 4 logical steps:
...
- Identifier: An ID to identify an entity, e.g. an a LEI code or SEC's Central Index Key (CIK).
- Identifier scheme: An URI which represents the type of ID used, e.g. http://standards.iso.org/iso/17442 for LEI codes or http://www.sec.gov/CIK for SEC's CIK.
...