[xsd-users] Serialization of inherited class not providing
attributes from base class
Boris Kolpackov
boris at codesynthesis.com
Mon Sep 1 03:06:47 EDT 2014
Hi Roger
roger <roger at autodata.no> writes:
> When I serialize the invoice, I only get:
> <cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
>
> instead of the expected:
> <cbc:DocumentCurrencyCode
> listID="ISO4217">NOK</cbc:DocumentCurrencyCode>
>
> Can this have to do with the fact that two of the base classes have the
> same name, or is it maybe that the inheritance chain is too long?
I don't think it is any of those. My first guess would be that the
type is polymorphic. This is #1 cause for missing content during
serialization. Check if cbc:DocumentCurrencyCode is a member of
a substitution group (or should have xsi:type attribute in the
document).
If that's not it, then you may want to try to upgrade to XSD 4.0.0
and see if that helps.
Let me know if none of this helps in which case I will have to look
deeper into this.
Boris
More information about the xsd-users
mailing list