We have a server application that can return one of 5different XML responses to a caller. These responses are described by separate XSD files. Let's call them A.xsd, B.xsd, C.xsd, D.xsd and E.xsd. We have control of the namespace, etc., so that does not represent an issue.
Now, I want to take the 5 different XSD files and create a single XSD that can be used to validate any of the messages (A, B, C, D or E).
How would I go about building a single XSD that accomplishes this?
I have looked at using complexType, choice, etc., but the options are confusing.
I have attached 2 of the XSD files that I'd like to combine into one...