I am working on a code that is trying to read in a bunch of xsd files and compiling schemas in a XmlSchemaSet.
Problem is that these xsd files come from various sources, and they might have elements/types declared multiple times, which i should remove or else i the compile method of XmlSchemaSet would throw an error.
Is there a recommended way of doing this type of thing ?
I followed steps from this MSDN post and it worked for me:
http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/7f1b7307-98c8-4457-b02b-1e6fa2c63719/
The basic idea is to go through the types from the new schema and remove them from that schema if they exist in the existing schema.