[xsd-users] abstract and substitutionGroup
boris at codesynthesis.com
Sun May 9 12:48:17 EDT 2010
Ray Lischner <rlischner at proteuseng.com> writes:
> Is there a way we can get Code Synthesis to produce the second form
> instead of the first form when serializing to XML?
The polymorphic type maps do not contain sufficient information to
perform this kind of serialization. If I were to implement this I
would probably generate a map containing base-derived information
for polymorphic types. Then I would go down the inheritance hierarchy
trying to find a substitution.
It would be much easier to define a substituting element for Der2 in
> P.S. this time I attached working examples instead of the hand-
> transcribed stuff I posted earlier.
That's always appreciated.
More information about the xsd-users