I was given an XML file and 20 XSD files and told to validate the XML file.
I created a small java program to load all the .xsd files into a Source array, which is then a parameter for the newSchema
method of SchemaFactory
(returns Schema object).
My error handler is a simple class raising SAXParseException
.
When validating, I get the following:
Message: src-resolve: Cannot resolve the name 'eppcom:clIDType' to a(n) 'type definition' component.
I've found a related question: How to solve this error : src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.?
However, that one is about a case where it seems like just one xsd file was used, I have 20...
About 10 of my xsd files make use of the clIDType element. I believe that if I know which schema it is that is broken, I could find out what is the problem and perhaps even fix it.
The schema documents aren't very consistent. Some specify schemaLocation
in the import, some don't. I tried patching up all the cases where schemaLocation
is not defined for the URI importing clIDType (by adding the schemalocation) but still got the same error... Again, I think if I know at least which xsd file this is raised for, I can then try more analysis on that file until I see the problem.
Any ideas how to approach this?