
392 • XML & Related Technologies
8.2 XMLREADER
As we have noted earlier, XmlReader has the following features:
• Fast operation
• Pull style API
• Forward-only access
• Read-only operation
XmlReader is a factory, like most modern classes. Hence, we can create an instance of the XmlReader
class by using the static Create () method. That is, the Create () method returns an instance of the XmlReader
class, without worrying about the implementation details.
Another useful class in this context is the XmlReaderSettings class. This class allows us to control the
usage of the XmlReader class. For example, suppose that we want to ignore white ...