[Ext] Re: [xsd-users] DLLs and --generate-element-type --generate-element-map

Boris Kolpackov boris at codesynthesis.com
Mon Jul 13 08:52:42 EDT 2026


Nicolas Weidmann <n.weidmann at lombardodier.com> writes:
> 
> As soon as I activate --generate-element-type --generate-element-map,
> I can only parse or serialize the element's (top) type.

Ok, I studied the source a bit and it appears we don't support
polymorphism in element types. I believe the reason for this is
that when the root element's type is polymorphic, one would either
have (in XML) the same element represent multiple "instances" via
xsi:type or have multiple elements via the substitution group,
which then can still be all parsed via the base root element in
the generated code.

So I would be curious to know how many root elements you need
to handle and whether they form hierarchies via substitution
groups?



More information about the xsd-users mailing list