hi
If we want to create an element containing both simple content ( thus one of the build-in datatypes ) and attributes, then instead of using <simpleType>
element, we instead must declare complex type and specify that this complex type will contain simple content. We do this by using <extension>
element under the <simpleContent>
element.
a) Does this new class ( derived from base type through <extension>
under <simpleContent>
element ) somehow encapsulates both the functionality of build in base type and the attribute(s)?
b) Do we use <complexType>
instead of <simpleType>
element due to the fact that derived class will be of complex type, even if it contains simple content?!
c) Do all complex types derive from some common base class?
Thanx