[xsde-users] Wrong code generation with complicated imports
boris at codesynthesis.com
Tue Mar 4 08:46:16 EST 2014
Vladimir Zykov <vladimir.zykov at doctormobile.us> writes:
> I look in parallel at both xsd and xsde and here is a problem I faced
> with xsde. In case of complicated imports in XML schema xsde generates
> non-compilable code. Example of such documents is in the attachment.
Without looking further into the attachment, let me suggest that you
try the file-per-type mode:
This article talks about XSD but the same functionality is available
in XSD/e. A warning: for a large schema it may seem overwhelming at
first since you will end up with a set of source files for each schema
type. But that's the only sure way of dealing with schemas that have
circular inclusions/imports (other than fixing them).
More information about the xsde-users