How to obtain a schema for my classes

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
 
K

Kyril Magnos

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
|
|
 
H

Henrik Dahl

Kyril,

Thank you very much! I'll try to take a look.


Best regards,

Henrik Dahl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top