[xsd-users] Refactoring of 3rd Party Schemas

Forstner Michael Michael.Forstner at cpg.de
Tue Mar 17 04:40:03 EDT 2009


Hi again,

I've got 4 3rd Party schemas. Each schema declares exactly the same types again and again an has it's own namespace.
So I've refactored them to use one common schema for the common types.

If this new common schema has it's own namespace and is imported by the 4 others,
xsd.exe generates seperate sources for each schema but the XML documents can't be parsed because they are missing the
namespace prefixes for the common types.

If this new common schema has no namespace and is included by the 4 others,
the XML documents can be parsed successfully but xsd.exe generates the common types
for each schema inline (multiple again).

Is there a possiblity to advise xsd.exe to handle includes like imports?

Thanks in advance,
Michael Forstner




More information about the xsd-users mailing list