[xsd-users] xsd compiler question about the --file-per-type option

Boris Kolpackov boris at codesynthesis.com
Thu Apr 20 12:18:59 EDT 2017


Hi Glenn,

Schrader, Glenn - 1002 - MITLL <gschrad at ll.mit.edu> writes:

> The issue is that when I use -file-per-type the type definitions are placed
> in separate header files as I expected but all of the parser and
> serialization functions are placed into the <xxx>.hxx header (for a schema
> file named "<xxx>.xsd"). I would have expected the parser and serialization
> function prototypes to also be in the same header as the type definition
> rather than in the common header that #includes everything.
>  
> Is there some way to tell the compiler to include those definitions in their
> corresponding type headers? I didn't seen an obvious compiler parameter that
> looked relevant.

See the --fat-type-file option.

Boris



More information about the xsd-users mailing list