This page demonstates C# and .Net code.

Each demo is in a WinZip file.
The demo source code is in Miscrosoft Visual Studio 2003 Solutions.
The executable is in the ~<name>/bin/Debug/<name>.exe directory. If you don't have Visual Studio installed, you will need at least the .NET Framework 1.1 Redistributable installed.

Importing XML to C# objects

     C# objects form a hierarchy of objects. XML forms a hierarchy of tags.
Wouldn't it be nice to simply convert from one to the other? XmlSerializer.Serialize and XmlSerializer. Deserialize provides a very slick method for importing and exporting native objects to and from XML. This demo shows loading a simple XML sample directly into C# objects in one step.

Download Xml Demo

site map