Can anyone tell me what is the difference between XSDObjectGen.exe & XSD.exe?
Is there any way to make XSDObjectGen.exe work in dot net 2.0?
At a purely technical level:
XSD.exe uses Arrays
XSDObjectGen takes a tiny step ahead and uses ArrayLists
.
XSD2Code leaps ahead with usage of Generics
.
If you're using .NET 2.0 and above using XSD2Code is most preferred.
The difference is:
xsd.exe
) is part of the Visual Studio SDK and has basic functionality.XSDObjectGen.exe
) is a more fully featured tool with more advanced features, and is released separately.To give you some idea, here is a summary feature list for XSDObjectGen.exe
:
For more details on these features see the XSDObjectGen.doc documentation file (available in C:\Program Files\XSDObjectGenerator
after you install the tool).
Looks like you can use it with VS2005 at least (according to this article, anyway)
Just add it to your External Tools collection of VS2005 under "Tools>>External Tools...".
Set your parameters as the following
It does appear that XSD and XSDObjectGen will yield different classes. In fact, comments in this Rick Strahl article say "they yield very different classes" in the article here.
As an alternative, there's Xsd2Code. Some features: