Reputation: 95
I am running Visual Studio 2010, I have some classes that I want to export to XSD, (My classes are like structs)
Exporting the class in xsd will allow me to send this xsd to my clients so that they can create appropriate xml, I will then use this xml to create my class objects.
I think xsd.exe allows me to that, but I cant seem to find the right parameters for the utility.
Please guide, Thanks, Rahil
Upvotes: 1
Views: 561
Reputation: 3209
Example
[System.Xml.Serialization.XmlArrayItemAttribute("item", IsNullable=false)]
public ItemsItem[] items;
C#
xsd.exe -t:PurchaseOrder PurchaseOrder.dll
That should do what you need
Upvotes: 2