views:

238

answers:

2

I have several "main" XSD documents, which import "supporting" XSD documents. These schema documents happen to be from the HR-XML 3.0 specification, in particular related to Background Screening.

For the purposes of code-generation and convenient single-file schema to reference in my WSDL, I am trying to "flatten" the schema. The imports should be resolved; and there should be no duplication between common (formerly imported) content.

I tried the Oxygen XML editor, which has a function specifically for that task; but this appears to support only one "main" document at a time - it is not possible to flatten/merge several "main" documents. I've also looked into XMLSpy, but it seems to be missing that functionality altogether.

Can anyone recommend specific tools, or offer general theory, behind this schema "flattening" process?

Thanks very much!

A: 

If you are using WCF to expose your service, this might help: http://stackoverflow.com/questions/1589598/can-you-combine-the-wsdl-and-xsd-data-from-a-wcf-service

Rudi
A: 

You can use a free flattener in my free tools section. It comes bundled with a schema lightener as well. Here is the website link.

Paul Kiel