[xsd-users] urgent problem - impelmenting polymorphism
Boris Kolpackov
boris at codesynthesis.com
Wed Nov 15 10:26:20 EST 2006
Hi Gidi,
Gidi Sidis <Gidis at radcom.com> writes:
> When I ran the project as you published, with already built schema.cxx
> and schema.hxx files than the program worked and printed:
>
>
>
> John Doe
>
> James "007" Bond, superman
>
> Bruce Wayne, flying superman
>
>
>
> However, when I replaced the existing schema.cxx and schema.hxx files
> with new schema.cxx and schema.hxx that were generated via executing the
> command:
>
> xsd cxx-tree schema.xsd
If your schemas use polymorphism (substitution groups and/or xsi:type
dynamic typing) then you need to compile them with the
--generate-polymorphic option:
xsd cxx-tree --generate-polymorphic schema.xsd
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061115/f6cf299c/attachment.pgp
More information about the xsd-users
mailing list