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.../24/33302.aspx http://msdn.microsoft.com/XML/Buildi...xsdcodegen.asp
--
HTH
Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)
"Henrik Dahl" <q@q.q.q> wrote in message
news:O4*************@TK2MSFTNGP10.phx.gbl...
| 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
|
|