[xsd-users] about cxx-tree generated include file

Boris Kolpackov boris at codesynthesis.com
Wed Apr 2 04:05:30 EDT 2008


Hi,

Lixuesong <givemenews at tom.com> writes:

> I have a xsd file my.xsd with following segment:
>
> <xsd:import namespace="http://www.liz.com/lizgen" schemaLocation="../general/lizgen.xsd"/>
>
> [...]
>
> and I found in generated my.h file, there is a line:
>
> #include "../general/lizgen.h"
>
>
> so, would you let me have a choice to produce my.h with:
> #include "lizgen.h"
>
> instead of
> #include "../general/lizgen.h" ?

You can use the --include-regex option (see the XSD Compiler Command
Line Manual for details). Your particular case can be handled with
the following regex:

--include-regex "%../general/lizgen.h%lizgen.h%"

Boris




More information about the xsd-users mailing list