Accessing XML Data Using .NET Framework Classes

Now that you've seen how to create an XML document, we get to the fun part: how to write code to extract and manipulate data from an XML document using classes found in the .NET frameworks. There's no one right way to do this; in fact, before .NET came along, two predominant ways were used to parse an XML document: the XML Document Object Model (DOM) and Simple API for XML (SAX).

An implementation of the XML DOM exists in the .NET framework. However, in this chapter we'll primarily focus on .NET's own XML handlers, such as the XmlNodeReader, XmlTextReader, and XmlTextWriter objects. These objects are the standard .NET way to access XML data; they provide a good combination of high performance, .NET ...

Get C#® Developer's Guide to ASP.NET, XML, and ADO.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.