I came across this question when looking for solutions to this problem when using the xjc in the console.
For those using the xjc command to parse xsd, this works for me:
$ xjc -nv foo.xsd
Remember:
By default, the XJC binding compiler performs a rigorous check on the source schema before processing it. Use this option to disable strict schema validation. This does not mean that the binding compiler will not perform any validation, but does mean that it will perform a less stringent validation.
So, if you think your xsd has a good source, using a less stringent check should not be a problem.
source share