I am integrating @JeffFerguson's Gepsio into my project.
I am using Banca d'Italia's SARA XBRL dialect.
In order to validate an XbrlDocument
I need all the schemas to be in same directory as the XBRL file. The sample file, in fact, contains a link to the SARA XSD schema
<link:schemaRef xlink:type="simple" xlink:href="t-SARA-2016-03-23.xsd" />
The problem is that I am required to build an application that will accept user-uploaded SARA files (.xml) and I can have the t-SARA-2016-03-23.xsd
schema (along with its referenced schemas) in my assembly but not necessarily in the upload/temp directory.
Is there any way to tell Gepsio to load requires XSDs from somewhere else rather than the directory where the XBRL (.xml) file is? I can see there is a constructor that takes System.IO.Stream
, which definitely has no knowledge of the file's real path, as it could be in-memory like during an upload (not really.....)