In the Microsoft .NET Framework, two distinct sets of classes provide for XML-driven reading and writing operations. These classes are known globally as XML readers and writers. The base class for readers is XmlReader, whereas XmlWriter provides the base programming interface for writers. In this chapter, we’ll focus on a particular type of XML readers—the XML text readers. In Chapter 3, we’ll zero in on validating readers and then move on to XML writers in Chapter 4.