Tired of writing .cs class?
we can generate it see example below…
I created a test.xml file
<test>
<field1>hi</field1>
<field2>bye</field2>
</test>
Step1:
Run visual studio command promt
step2: move to the folder where test.xml is saved and execute below command
xsd test.xml
Above command will generate xsd file based on test.xml
and then execute below command to generate the .cs file
xsd /c test.xsd
Done.
You can easily generate .cs file from xml file.
Now