The .NET framework contains a rich set of classes for working with XML data; these classes are divided into multiple namespaces. This book does not cover all these classes; however, I want to provide you with an overview of the most important ones.
The main classes for working with XML data are as follows :
These XML classes can be roughly divided into four types. The first two classes, XmlTextReader and XmlTextWriter , enable you to perform the basic operations of reading and writing XML data to a file.
If you need to represent XML data in a static, memory-resident structure, you use either the XmlDocument or XmlDataDocument class. These classes enable you to create an XML DOM to represent an XML document in a memory-resident tree.
To learn more details about the XML Document Object Model (DOM), visit the World Wide Web Consortium (W3C) Web site at http://www.w3.org/dom.
The XmlDocument class enables you to represent XML data in a DOM. XmlDataDocument extends the XmlDocument class to enable you to represent the XML data in either a DOM or a DataSet .
If you want to efficiently navigate the nodes of an XML document represented by the XmlDocument or XmlDataDocument class, you can use the XmlNodeReader , DocumentNavigator , or DataDocumentNavigator class. The latter two classes support XPath expressions.
Finally, the XslTransform class enables you to perform transformations on an XML document. Typically, you use the XslTransform class either to convert one XML document into another XML document or to convert an XML document into an HTML document. However, you also can use the XslTransform class to convert an XML document into any other file format.
To learn more details about XSL (eXtensible Stylesheet Language), visit the W3C Web site at http://www.w3.org/style/xsl.