[xsd-users] XSD codesynthesis code generator modification

Boris Kolpackov boris at codesynthesis.com
Fri Jan 10 08:32:11 EST 2020


Laurent MONTMAILLER <lmontmailler at edap-tms.com> writes:

> I would like for example override generated accessor methods (set/get)
> and add some features in the C++ generated classes : inheritance from
> an in-house class, additional includes, methods and so on... The goal
> is to modify the generator to make all that in an automatic way: at
> each code generation. I think I cannot do that the way it is explained
> in the customization guide...

You can probably achieve most of this, though it will require some effort
and for a large schema with many types, may be quite tedious.


> I'm also surprised not to find the generator C++ classes following the
> "source code" link (https://codesynthesis.com/projects/xsd/), but "only"
> header/templates files.

You need to download the source code archive, not the pre-build binary.
Specifically, xsd-4.0.0+dep.tar.bz2 from:

https://codesynthesis.com/download/xsd/4.0/

Then follow the instructions in:

https://codesynthesis.com/projects/xsd/extras/build-windows.xhtml



More information about the xsd-users mailing list