[xsd-users] #define problem.

Boris Kolpackov boris at codesynthesis.com
Fri Mar 21 02:30:09 EDT 2008


Hi Shiva,

Balasubramanyam, Shivakumar <sbalasub at qualcomm.com> writes:

> Is there a word around for 3.0 ?

I see a few options:

1. Rename the schema file (e.g, types_ABC.xsd).

2. Write a small script to post-process the include guards in
   the generated ABC.hxx

3. In 3.0.0 and earlier versions the guard name is derived from
   the header name. So one option would be to rename the generated
   header file with the --hxx-regex option to generate, say,
   types_ABC.hxx instead of ABC.hxx:

   --hxx-regex '/^ABC.xsd$/types_ABC.hxx/'

   You can also create the ABC.hxx header which simply includes
   the generated one so that your code doesn't not need to know
   about this work around:

   #include "types_ABC.hxx"

Boris




More information about the xsd-users mailing list