There is a set of XSD files with the following types described in them:
A is a complex type with various elements. B restricts A, retaining only some of its elements; C extends B by adding some elements.
So, this means that the Java class generated by the tool using type C from the XML schema should include only those elements from A that are stored by B, and new ones added by C
To make things even more difficult, B actually modifies the minOccurs attribute of some elements.
Are there any frameworks that can handle this? I tried EMF and the restrictions did not even reflect on the code.
source
share