Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Edit

Generating an XSD from a class

Edit

Create an external tool

To create an XSD scheme for your CS of VB class, you can use the XSD.exe tool which you can find under C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\bin\xsd.exe.

In Visual Studio, go to Tools > External Tools and choose Add.

Now create the following:

Image

To create an XSD from any of your class files (note that the .cs file's name must match the classes name!), just click on your class file and choose Tools > CS to XSD.

The file will be written to the same folder as your class file and be named schema0.xsd.

 © Evident Interactive BV