xsd.exe gtest1.xsd /cThese are the steps to convert xml files to class files in Visual Studio.
- Open the XML file in Visual Studio.
- Create Schema in the XML option.
- Run the Visual Studio command prompt from programs.
- Cd to the relevant file:
- cd C:\test1\test2\\xml_files
- To convert file
- xsd.exe test1.xsd /c
- to convert multiple files
- xsd.exe test1.xsd test2.xsd /c
- when converted individually lot of duplicate names had to be commented out.
- Easier approach use the XSD files create constructor for each item.
No comments:
Post a Comment