Feature Suggestion: Reuse existing types

Jun 4, 2012 at 1:05 PM

I have two XSD files defined by Oasis (in order words not much i can do about them).

Each define a root element, an invoice and a creditnote respectively. These two XSD files contains a LOT of shared types, and they import the same schemas. However since they are two separate files in two separate XML namespaces (the root elements atleast), i get all the common classes twice. Thus I have to put them in separate C#/.NET namespace and get a lot of duplicate code.

It would be neat to have some option to re-use any types already defined in the namespace. Such that when i create the first set of classes I put them in namespace Oasis.Whatever and it generates all the nessecary types, and when I want to generate the second set, I put them in Oasis.Whatever aswell and the generator just skips the types already defined.  Similar to what is done by the "Add reference" option of Visual Studio.

Jun 16, 2013 at 6:01 PM
Did you find a solution to this problem?

Was this feature added?