In Chapter
3
, you learned about the
XmlReader
and
XmlWriter
classes. The abstract classes
XmlReader
and
XmlWriter
can be used in three ways:
To call the
Create()
method of the respective classes that return an instance of the generic
XmlReader
or
XmlWriter
classes
To use the concrete classes
XmlTextReader
and
XmlTextWriter
provided by the .NET Framework
To create custom classes that inherit from the
XmlReader
and
XmlWriter
classes
You are already familiar with the first two approaches. In the following sections, you are going to learn how to create custom readers and writers from the abstract base classes
XmlReader
and
XmlWriter
.