There is an application, xsd.exe, that comes with .net. It is written in
..net. Part of this application takes XML and converts it to a schema. I'm
not sure what class it is that does this, but you could get reflector
(
http://www.aisto.com/roeder/dotnet/) and decompile the app to find out.
From there you could take your C# Class serialize it to XML then use the
classes from XSD.exe and create a schema out of it.
I'm not sure if there is a way to take the class directly from C# to XSD,
but this is one possibility that should work.
--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein
"Cindy Liu" <Ci******@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
Hi Everyone,
In .Net we have XmlSerializer to convert c# class to xml, or vice versa.
Do we have any APIs to convert c# class to XSD?
Thanks in advance,
Cindy