How to obtain a schema for my classes

  • Thread starter Thread starter Henrik Dahl
  • Start date Start date
H

Henrik Dahl

Hello!

xsd.exe is able to generate an XSD schema for the classes in an assembly. I
suppose that xsd.exe is just using some of the .NET Framework classes to
achieve the outcome, but I don't know which ones. Therefore my question
basically is, how to generate an XSD schema for my classes programmatically
instead of invoking xsd.exe?


Best regards,

Henrik Dahl
 
Henrik,

Basically, under the hood, xsd.exe uses the System.Xml,
System.Xml.Serialization, and System.CodeDom namespaces to accomplish what
it does (albeit, usually badly! lol).

These articles should help you:

http://weblogs.asp.net/cazzu/archive/2003/10/24/33302.aspx
http://msdn.microsoft.com/XML/Build...l=/library/en-us/dnxmlnet/html/xsdcodegen.asp

--
HTH

Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)

| Hello!
|
| xsd.exe is able to generate an XSD schema for the classes in an assembly.
I
| suppose that xsd.exe is just using some of the .NET Framework classes to
| achieve the outcome, but I don't know which ones. Therefore my question
| basically is, how to generate an XSD schema for my classes
programmatically
| instead of invoking xsd.exe?
|
|
| Best regards,
|
| Henrik Dahl
|
|
 
Back
Top