2016/02/14

How to generate c# classes from xml ?

xsd is available in systems with .net installed.
Usually here: C:\Program Files (x86)\Microsoft SDKs\Windows\
fg. C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\xsd.exe

D:\temp>xsd test.xml
D:\temp>xsd test.xsd /classes

Solution found here: http://stackoverflow.com/a/4203551

Sometimes you will have to change generated cs files fg change double dimension array type [][] to []

No comments:

Post a Comment