Skip to main content

Reading and Writing XML Documents

  • Chapter
Beginning xml with C# 2008
  • 565 Accesses

Abstract

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

  • Working with a subset of XML documents and reader and writer classes

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Bipin Joshi

About this chapter

Cite this chapter

(2008). Reading and Writing XML Documents. In: Beginning xml with C# 2008. Apress. https://doi.org/10.1007/978-1-4302-0998-0_3

Download citation

Publish with us

Policies and ethics