Validating XBRL via Arelle with Java

57 views
Skip to first unread message

Robert Mark Bram

unread,
Apr 17, 2025, 12:58:35 AM4/17/25
to Arelle-users
Hi all,

Are there any examples of how to use the Arelle API to validate XBRL from Java?

We currently use a Schematron to validate business rules of incoming XBRL files and are now trying to validate those incoming XBRL files against the XSDs first.

I have XSD validation working, but it is downloading the XSDs from the internet every time and I haven't figured out how to get a catalog resolver working. I posted this about my problem: https://stackoverflow.com/questions/79573162/error-validating-xbrl-using-catalog-xml-to-ensure-only-local-xsd-files-are-used/79576320

A possible second option would be to use Arelle as a web server, but I would like a starting point to get this up and running. If I use Arelle in this way, will it cache the XSDs?

Rob
:)

Herman Fischer

unread,
Apr 17, 2025, 1:09:28 AM4/17/25
to arelle...@googlegroups.com

There are a couple quite-old .java examples in here: https://github.com/Arelle/Arelle/tree/master/arelle/archive

 

The built-in cache in Arelle prevents going out to the internet repeatedly.

 

--

---
You received this message because you are subscribed to the Google Groups "Arelle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arelle-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/arelle-users/c5fcf2b4-ebf2-4365-b56b-669e9a78244bn%40googlegroups.com.

Robert Mark Bram

unread,
Apr 17, 2025, 2:40:49 AM4/17/25
to Arelle-users
OK, I found those and figured out the usage pattern, which is pretty easy. I can make a call like http://localhost:9292/rest/xbrl/relative/path/to/file.xml/validation/xbrl?media=json which is nice.

How does Arelle go with multiple concurrent requests? Can we configure it for number of threads?

Also, is there an official Docker container with Arelle?

Rob
:)

Reply all
Reply to author
Forward
0 new messages