3. Reading and Writing XML Documents
(1)301 Pitruchhaya, Thane, India
Chapter
2 gave you a detailed understanding of the .NET Framework’s DOM parser, that is, the
XmlDocument class. You also learned when to use DOM parsers. In this chapter, you are going to learn about XML reader and writer classes. The topics discussed include the following:
Using reader and writer classes
Knowing when to use these classes instead of DOM
Reading XML documents by using the XmlTextReader class
Writing XML documents by using the XmlTextWriter class
Dealing with non-textual data
What Are XML Readers and Writers?
DOM-based parsers are best suited for modifying XML ...