Use its static Create method to create an instance.
XmlReaderSettings defines how an XmlReader processes the input stream. It can specify node types to be ignored and a schema to be used for validation.
An XPathDocument is used for reading only.
Two movies nodes are retrieved: Raging Bull and Taxi Driver.
One movies node is retrieved: Taxi Driver.
One movies node is retrieved: Raging Bull.
Two movie_Title nodes are retrieved: Raging Bull and Taxi Driver.
Two validation techniques were discussed in this chapter. One approach is to use the XmlReader class directly by setting the Schemas and XsdValidate properties to enable validation. The other approach is to use the XmlValidatingReader class.