XSD Inheritance: Is it possible
Hi ,
I wasnt sure where to post this, As its some wher related to xml, I am posting it here.
I have a xsd {a1.xsd} which has many elements of complex type and now my requirement is to write a new xsd {b1.xsd} , This new xsd has many elements that are common to a1.xsd , But it {b1.xsd} has its own new xsd elements. I was wondering if there is some way of inhertance in xsd. I would like to place the common elements of a1.xsd and b1.xsd into common.xsd, Further i want both a1.xsd and b1.xsd to inherit the common.xsd {Or shd be possible to use the elements}. {Some kind of inheritance} so that i should be able to reuse. Why am i talking all this is because. Once i have the xsd'd i want them to unmarshall them in to JAva classes using JAXB, All the complex types of xsd'd will be converted to java classes. If i have few types in xsd common then i could redunce the number of classes {As they are common , This would reduce redundant code}
I am not sure even if this is possible and is this a good way of doing it.
Hope you understood my problem.
Thanks
deepak

