I have reference to a namespace that is in a different directory then the xsd that I’m trying to bind. When I try binding I get the following error:
[ERROR] src-resolve: Cannot resolve the name ‘ms:MyMethod.Enumeration’ to a(n) type definition component.
My xsd looks like this:
The line it fails is as follows:
MS.xsd is located ..\..\..\MS directory above where this xsd is located. Not sure on how I need to use xjc to generate the java files while finding the MS.xsd?
Joined: Oct 04, 2006
A quick reply: When I see your XML schema with the import of the MS.xsd schema file, I get the feeling that the MS.xsd file should be located in the same directory as the other XML schema.
An alternative may be to change the schema location in the import statement so that the MS.xsd schema is found.
Joined: Jan 06, 2009
Thanks Ivan. You are correct. If I move the MS.xsd to current directory or give a relative path in the schemaLocation it works correctly.