© Bipin Joshi 2017
Bipin JoshiBeginning XML with C# 7https://doi.org/10.1007/978-1-4842-3105-0_3

3. Reading and Writing XML Documents

Bipin Joshi1 
(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 ...

Get Beginning XML with C# 7: XML Processing and Data Access for C# Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.