Don't Generate Classes for Imported Schemas?

May 11, 2012 at 9:47 AM

I'm using the newest beta of Xsd2Code (3.5.0.40152) and am having some problem with imports.

Basically, the problem is the same as with xsd.exe: It generates a class for every imported schema. As I have the schemas offline and want to separate the generated classes instead of have it all in one file, I would like an option to generate only classes for the elements that are actually in the original schema, but not for the elements that reference an imported schema.

For elements that reference an imported schema, it must just generate the code and trust the class to be there.

Is this possible with the current version or is there an alternative tool which I can use?