Chapter 11 - Manipulating XML | |
bySimon Robinsonet al. | |
Wrox Press 2002 | |
In this chapter we explored many of the corners of the System.Xml namespace of the .NET Framework. We looked at how to read and write XML documents using the very fast XmlReader and XmlWriter -based classes. We looked at how the DOM is implemented in .NET, and how to use the power of DOM. We saw that XML and ADO.NET are indeed very closely related . A DataSet and an XML document are just two different views of the same underlying architecture. And, of course, we visited XPath and XSL Transforms.
Finally, we serialized objects out to XML, and were able to bring them back to life with just a couple of method calls.
XML is going to be, if it isn't already, an important part of your application development over the next several years . The .NET Framework has made available a very rich and powerful toolset for working with XML. For a further exploration of XML and C#, with emphasis on XPath and XSLT, see " Data-Centric .NET Programming with C# " (Wrox Press, ISBN 1-861005-92-x).
In the next chapter we will be looking at how to handle files and the Registry using C# classes.