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.