[xsd-users] xsd inheretance at generated code
Uri Karagila
uri at hyperroll.com
Sun Jun 10 01:36:00 EDT 2007
hey,
please review the following case:
1. xsd abstract type "shape".
2. both xsd type "triangle" and type "square" are an extension of "shape".
at the generated code will get:
1. class shape
2. classes triangle and square, both inherited shape.
in case i have a container which holds "shape" class descendant objects. what would be the best way to get random element's type.
note: both "triangle" and "square" does not have and attribute (i.e., class member) which holds object type.
Regards
uri
More information about the xsd-users
mailing list