Team LiB
Previous Section Next Section

Chapter 8. XML Fundamentals

IN BRIEF

In this chapter you will explore the various XML support provided by the .NET Framework. This chapter is divided into five sections with each section discussing a particular area of support for XML.

In the first section, you will explore the basic XML DOM. This includes loading, storing, adding nodes, elements, and attributes. The second section deals with the various XmlReader-derived classes along with conversion of XML types. The third section is about the use of XPath to location elements within an XML document. XPath is a very powerful search feature and we'll cover its varied usage. The fourth section introduces the XPathDocument and XSLT transformations. The ability to transform data from one XML document to another is a need commonly encountered in B2B applications. Finally, in the last section, you will learn about the rules and requirements when using XML Serialization.

WHAT YOU NEED

RECOMMENDED SOFTWARE

.NET Framework

Visual Studio .NET

RECOMMENDED HARDWARE

.NET-enabled desktop client

SKILLS REQUIRED

C# coding


XML FUNDAMENTALS AT A GLANCE

Working with the DOM

155

 

Creating an XML Document

161

Persisting the DOM

163

 

Working with XML Nodes, Elements, and Attributes

162

  

Using the XmlReader Classes

163

 

What Is an XmlReader?

164

Using the XmlNodeReader

167

 

Using the XmlTextReader

164

Making Use of XmlConvert

167

 

Using the XmlValidatingReader

166

  

Exploring XPath

168

 

Learning the Syntax

169

Filtering Nodes

170

Introduction to the XPathDocument

171

 

Introduction to XSLT

175

Transforming XML Documents

175

Serialization XML Style

179

 

Using Basic XML Serialization

179

Customizing XML Serialization

181

Summary

183

Further Reading

183


    Team LiB
    Previous Section Next Section