Multiple Definitions

Mar 16, 2010 at 8:58 PM
Edited Mar 16, 2010 at 9:34 PM

I have a number of XSD files that all include the same base XSD file.  The code generated by Xsd2Code includes the definition of enums defined in the base XSD in each of the deriving files, resulting in compilation errors.  How do I tell Xsd2Code not to do this?




Apr 16, 2010 at 9:00 PM
Edited Apr 19, 2010 at 6:19 AM

We have the same problem. The only way we have found to solve the problem is to compose all of the XSD files (which correspond to one logical namespace) to another big one and generate one source file. It will contain a lot of classes, enums etc. in that namespace . Another set of XSD files will go to another namespace and source file.

UPDATE. Xsd2Code 3.3 beta2 solves the problem (see /eit+ switch).

May 12, 2010 at 12:54 PM

Great! The eit+ switch is the one I was waiting for a long time! :-)