Wednesday, July 15, 2009

How to create Class from XML

I've had to convert an XML file to a class a couple times over the past few weeks and I'm tired of having to look it up so I've added it to my blog.

Open up Visual Studio's Command Prompt...

XML to XSD
xsd.exe ImportsCollection.xml /language:CS

XSD to CS
xsd.exe ImportsCollection.xsd /d /language:CS

No comments:

Post a Comment