Murach's C# 2005
How to work with XML files

To start, this chapter presents the basics of XML and shows you how to use the Visual Studio XML Editor for working with XML. Then, it shows you how to use C# with the XmlWriter and XmlReader classes to store XML documents in a file and to read XML documents from a file.

Chapter 23 How to work with XML files
An introduction to XML 720
An XML document 720
XML tags, declarations, and comments 722
XML elements 722
XML attributes 724
How to work with the XML Editor 726
How to create a new XML file 726
How to open an existing XML file 726
How to edit an XML file 726
How to work with the data for an XML file 728
How to work with XML 730
How to use the XmlWriter class 730
Code that writes an XML document 732
How to use the XmlReader class 734
How the XmlReader class reads nodes 736
Code that reads an XML document 738
A class that works with an XML file 738




Murach's C#

Learn more about this book

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.