N/APosted on - 03/29/2013
I am fresh to Microsoft Visual Studio 2010 and have recently installed it on my system with Windows XP. I need to use it for validating the XML files. I need to know about how to create a schema file or convert the DTD to Schema. Please advice on how to use Visual Studio 2010 DTD to XSD, Is there any plugin needed for that or is it in-build within Microsoft Visual Studio 2010? Please guide.
Visual Studio 2010 DTD to XSD
No plugin needed. Follow these steps.
Upload DTD file to Visual studio. You'll get a picture like this.
Click create Schema button and you'll get XSD output.
You have XSD, save it to an arbitrary path and then use as XSD.exe utility to generate strong typed classes (path is C:tempSchemasNewspaper.xsd).Using Visual Studio Command Prompt 2010, navigate to path where your XSD file resides
Then type the following command
xsd.exe Newspaper.xsd /classes /language:CS
When you navigate to path, then you will see a new C# file and you should be able to perform serialization and deserialization task.
You can also convert using XMLPad. You can download it by clicking here.