Aspose.Finance xbrl validation warnings

Hello Support Team,

I have downloaded free trial of Aspose.Finance to work with ixbrl and xbrl files.

I am doing some analysis on how Aspose.Finance can fit in our requirement and so far looks promising.

I have tried out XBRL validation and it is giving proper validation errors.

InlineXbrlDocument document = new InlineXbrlDocument(sourceDir + @“account_1.html”);

document.Validate();

if (document.ValidationErrors.Count > 0)

{

List validationErrors = document.ValidationErrors;

}

However, can you please help us on how to get the validation warnings?

I am looking for something like document.ValidationWarnings. Is that supported?

@himanshushah,

Aspose.Finance does not have such a built-in property or method specifically for retrieving validation warnings. The ValidationErrors property is typically used to retrieve errors encountered during validation process. Could you please differentiate between errors and warnings with details
and sample documents? We will check it soon. For validation warnings, maybe you could get all validation errors and implement your custom logic to separate them for your needs.

Thank you for quick response.

Please note below behavior:
I am validating one of the xbrl file,

Aspose gives me only one error message: “Item ct-comp:CompanyName must have a context.”

It should give me below error and warning.
Error:
Attribute ‘contextRef’ is required in element ct-comp:CompanyName.
Error location: xbrli:xbrl / ct-comp:CompanyName

Warning:

<ct-comp:CompanyName> is an instance of the source concept 'ct-comp:CompanyName' of requires-element arc <link:definitionArc>, but there is no instance of the respective target concept 'ct-comp:TaxReference'.
Warning location: xbrli:xbrl / ct-comp:CompanyName

Please let me know if you need additional information.

@himanshushah,

Thanks for providing further details.

Could you please also zip and attach the XBRL document? We will log a ticket into our database to evaluate your requirements and incorporate/implement it (if possible).