.NET Samples - How To: XML Serialization
This page is specific to:.NET Framework Version:1.1
.NET Framework QuickStarts
.NET Samples - How To: XML Serialization

This section includes the following sample:

ReadWriteXML Sample

ReadWriteXML Sample

This sample application (and related PurchaseOrder application files) demonstrates how to read and write XML. It shows how to automatically map a particular XML stream into a set of objects designed to hold the XML using the XML Serialization classes, how to build an XSD file for classes that you save and load from XML using the XML Serialization classes, and how to create classes that can be used to read and write XML that is defined by an XML Schema Definition Language (XSD) file.

Link to the online sample documentation

Link to the online sample source code

Namespaces used in this sample:

System; System.IO; System.Xml.Serialization

Classes used in this sample:

XmlSerializer; TextReader; StreamReader; TextWriter; StreamWriter

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View