In case I forget, this is how to create serializable classes from a few inter-dependent XML schema files. First, put the xsd files in the C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin folder (naughty, I know, but I couldn’t be bothered working with any path issues). Then run the following command, including the names of all the files:

xsd.exe general-v2-9.xsd SCIStoreGeneral-V7-1.xsd DocumentUpload-V7-1.xsd /c /l:c#

The output is as follows:

Writing file ‘C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\general-v2-9_SCIStoreGeneral-V7-1_DocumentUpload-V7-1.cs’.

So you get a C# class file which can be included in your project. Doubtless there are better ways of doing this, but it worked well enough for me.

Advertisements