Previous Section  < Day Day Up >  Next Section

Chapter 10

A1:

Use its static Create method to create an instance.

A2:

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.

A3:

An XPathDocument is used for reading only.

A4:

  1. Two movies nodes are retrieved: Raging Bull and Taxi Driver.

  2. One movies node is retrieved: Taxi Driver.

  3. One movies node is retrieved: Raging Bull.

  4. Two movie_Title nodes are retrieved: Raging Bull and Taxi Driver.

A5:

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.

    Previous Section  < Day Day Up >  Next Section