Open Tomas-Kraus opened 6 years ago
Tomas-Kraus, have you found a solution for your problem?
Dear @Tomas-Kraus and @Express85 , I have the same problem . Have you found any solution for this problem ? My logged error is
src-resolve: impossibile risolvere il nome "ext:UBLExtensions" in un componente element declaration.
Thanks
In my XML schema, many online XSD files have been imported in. When I tried to make the validation of an XML against XSD file with the following code:
The following error occurred.
I can't download all referred XSD files manually, as these are more than forty XSD files.
By searching, I found two solutions. The first solution is to download all the XSD files and change manually all the online URLs of schemaLocation to the local relative paths. But as that change need to be done in more than 300 places. It is not a very practical solution for us.
The second solution is to follow this code. Which I found it here.
But the refferred code isn't very sufficient either because we need for all XSD files to create an InputStream and Source object and finally add all of them in the schema.
During generation of Java classes we create the catalog.cat file to rewrite system id like the following code.
Is there any way to use the catalog file also for the validation of the XML file against XSD file?