How to Generate C# class from a XML file ?


This content was proof-read by Grammarly. You can Try Grammary for FREE

Do you want to generate C# class from an XML file ?. You can use the xsd tool to do it.

How to Generate C# class from a XML file ?

1. Just launch the Visual Studio Developer Command prompt from the Windows Start menu.

2. Type the command xsd and specify the path of the xml file.

xsd d:\test\test.xml

3. This will create the C# classes in the current directory.

%d bloggers like this: