CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    ireland
    Posts
    291

    [RESOLVED] xml to C# class, deserialize to create a class

    Is there any way to create a Class hierarchy from an XML document?

    I have an XML document and I want a C# Class representation of it.
    I see you can create a definition file .xsd using a VS too xsd.exe. The contents of the resultant xsd file look good, is there any way to create a C# class to represent this definition?

  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: xml to C# class, deserialize to create a class

    You can use xsd.exe tool to create .xsd file out of .xml, then use the .xsd to generate class files using the same xsd.exe tool (xsd.exe information ) in design time. Is this what you are looking for?

  3. #3
    Join Date
    Aug 2002
    Location
    ireland
    Posts
    291

    Re: xml to C# class, deserialize to create a class

    Wow yes that is what I'm looking for.
    Thanks poochi.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured