问题
Is there a way of outputing xml schemas (xsd) from serialisable c# classes? I have had a look about the web but im not sure im searching for the right stuff.
Thanks
回答1:
You're looking for XSD.exe http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx
Point it at a .dll and it will generate schemas for your classes.
回答2:
Xsd2Code works well
http://xsd2code.codeplex.com/
来源:https://stackoverflow.com/questions/6709984/c-sharp-serializable-classes-to-xsd