Multiple elements with same name appear in the same particle
I have a schema containing two elements with the same name but different types.
When I execute "xjc -p cre -d cre xsd/test.xsd"
The result I get is:
Warning: JAVA_HOME environment variable is not set.
If build fails because sun.* classes could not be found
you will need to set the JAVA_HOME environment variable
to the installation directory of java.
parsing a schema...
[ERROR] cos-element-consistent: Error for type 'cristal_Type'. Multiple elements
with name 'cre', with different types, appear in the model group.
line 6 of test.xsd
Failed to parse a schema.
If i execute the same command with the option -nv. The files are generated correctly but i get an exception when unmarshalling.
To solve this problem i tried to inline customize my schema like this:
But the result is the same, it hasn't solved my problem.
Could you tell me if I'm searching in the good direction or not?
Thanks by advance for your precious time.