Groups | Blog | Home
all groups > dotnet xml > april 2007 >

dotnet xml : How to create objects derived from XML


Martin Honnen
4/27/2007 12:00:00 AM
[quoted text, click to view]

The .NET framework SDK comes with a tool named xsd.exe which can do
various things, it can infer an XSD schema from an XML instance document
and once you have a schema it can infer C# or VB.NET source code with
class definitions matching the schema.
See <http://msdn2.microsoft.com/en-us/library/x6c1kb0s(VS.80).aspx>.
Once you have the class definition as .NET code you are able to compile
it and use System.Xml.XmlSerialization.XmlSerializer to deserialize an
XML instance document into .NET objects.



--

Martin Honnen --- MVP XML
Norbert Pürringer
4/27/2007 12:23:28 AM
Hello!

I have somewhere read that it is possible to create automatically .NET
classes describing the structure of an XML file.

I would like to read an XML file, which will be deserialized in proper C#
classes.

Does someone know links for me which steps must be performed to do such
things?

Regards,
Norbert

AddThis Social Bookmark Button