[xsd-users] reduce size of generated code
Boris Kolpackov
boris at codesynthesis.com
Wed Feb 22 11:41:37 EST 2017
Hi Benjamin,
Again, please don't send a new question by replying to an existing email
(even if changing the subject) since it breaks email threading.
Benjamin DuPont <ben at nebland.com> writes:
> I'm working with some fairly large and complex schemas which result in a
> large code base. Does anyone have tips for reducing the size of the
> generated code?
There is no magic, unfortunately. If the schema is complex, then the
generated code will unfortunately be substantial. XSD already does
does a long way in trying to weed out duplicate types, etc.
> Is there a way to remove generation of the smart pointer setters?
All the available options are listed in the compiler manual (man
page):
http://codesynthesis.com/projects/xsd/documentation/xsd.xhtml
In particular, look for --suppress-* options.
Boris
More information about the xsd-users
mailing list