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, keeping only some of its elements C extends B, adding some elements.
So, this means that a Java class generated by a tool using type C from the XML schema, is expected to include only those members of A which are kept by B, and the new ones added by C
To make things even more difficult, B actually changes minOccurs attribute of some of the elements.
Are there any frameworks out there which can handle this? I've tried EMF and restrictions are not even reflected to code.
Use Castor CodeGenerator. It's Nice. See http://www.castor.org/reference/html-single/index.html#xml.code.generator.examples.non-trivial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With