Readers and XML Readers

To cap off our examination of XML readers and custom readers, let’s spend a few moments looking at the difference between an XML reader and a generic reader for a non-XML data structure.

A reader is a basic and key concept in the .NET Framework. Several different types of reader classes do exist in the .NET Framework: binary readers, text readers, XML readers, and database readers, just to name a few. Of course, you can add your own data-specific readers to the list. But that’s the point. How would you write your new reader? The simplest answer would be, you write the reader by inheriting from one of the existing reader classes.

A more precise answer should help you identify the best reader class to start from. The key ...

Get Applied XML Programming for Microsoft® .NET 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.