Questions

Generating XML from XSD in VB.NET

+
0 Votes
Locked

Generating XML from XSD in VB.NET

m_sinchak
I have XSD file and I am trying to generate XML file based of off the XSD. Does anyome have code sample how this done? What I have is the xml stored in table and I am kind of combining xml from each record in the table into one huge xml file.
  • +
    0 Votes
    CaptainGoodnight

    If you want to generate XML files based on a set of schema files using VB .Net, the easiest way I can think of is XML serialization.

    If you are using Visual Studio 2005, you can use its xsd.exe command line tool to create a class file that contains the necessary code to parse or create XML data in object oriented fasion.

  • +
    0 Votes
    CaptainGoodnight

    If you want to generate XML files based on a set of schema files using VB .Net, the easiest way I can think of is XML serialization.

    If you are using Visual Studio 2005, you can use its xsd.exe command line tool to create a class file that contains the necessary code to parse or create XML data in object oriented fasion.