Xsd.exe (command line tool shipped with the SDK) will create the C# classes for you. To get those classes to/from XML you then just use the XmlSerializer class.
Adam.. > -----Original Message----- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Eddie Lascu > Sent: Wednesday, February 01, 2006 12:43 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: [ADVANCED-DOTNET] XSD -> C# classes -> XML > > Hello experts, > > I have the feeling that this question was asked before, but I don't > remember > what was the answer and whether it can be done. > Basically I have a huge XML Schema Definition file (with tons of types > defined). Is there a tool that can be used to generate the equivalent C# > classes that can be later used to instantiate and serialize objects that > would generate Xml documents that can be validated against the schema? I > know you can open an XSD document in the Visual Studio, but I don't know > if > you can generate the C# classes within the IDE. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com