Home »

What are the derived classes from xmlReader and xmlWriter?

Question ListCategory: .NETWhat are the derived classes from xmlReader and xmlWriter?
jeanderson295 author asked 8 years ago
1 Answers
shah_kajal184 author answered 8 years ago

Both XmlReader and XmlWriter are abstract base classes, which define the functionality that all derived classes must support.
There are three concrete implementations of XmlReader:
1.XmlTextReader
2.XmlNodeReader
3.XmlValidatingReader

There are two concrete implementations of XmlWriter:
1.XmlTextWriter
2.XmlNodeWriter

XmlTextReader and XmlTextWriter support reading data to/from text-based stream, while XmlNodeReader and XmlNodeWriter are designed for working with in-memory DOM tree structure. The custom readers and writers can also be developed to extend the built-in functionality of XmlReader and XmlWriter.

Please login or Register to Submit Answer