I am using the following command to generate related xsd file from my input XML file -- response.xml, my confusion is (1) why there are two xsd file output (response.xsd and
Yes, remove the namespaces from XML file and generate it, you will get single XSD file
The reason why two files are getting generated is because your XML contains two XML namespaces; each generated XSD corresponds to a namespace. The one for the soap envelope namespace imports the mycorp namespace (which you can see from the xs:import element).
IIRC, you use both, one will probably reference the other.
George,
To generate classes from these files, you must list both on the command line:
D:\>xsd response.xsd response_app1.xsd /classes
It has already been correctly said that the two .xsd files are because there were two XML namespaces in your original XML file. BTW, I'm guessing a little here because you did not post the XML file.