Some time ago I created a
XSDschema package to generate an XML schema. The XML schema is taken as an input to XMLBeans for Java code generation.
XMLBeans works best for me, if I define just one top element and associate other complex types to it.
The result shall be totally flat, no nested element definitions inside complex types. Elements in a Sequence should just refer to types on the outer level.
This worked some time ago.
Now I had to introduce an extention (named
runnable). The
Schema Composer/Export XSD generates all complex types in a
flat manner for all older classes. But all
newly introduced classes are generated in an unwanted nested style (with some errors as well, non-associated complex types added as elements in the Sequence).
I was not able to find the difference between the new and the old complex types.
I have zipped the eapx and the generaed result
here. (
updated to include the eapx and the expected XML schema generation result, that I did manually.)
I would really appriciate if someone would get me back on track, so that a completely flat XML schema will be generated.