What is the syntax for using the ReadXml(string, XmlReadMode) method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the syntax for using the ReadXml(string, XmlReadMode) method?
Rating:
Following is the syntax for using the ReadXml(string, XmlReadMode) method of the DataSet class:
where, datasetobjectname specifies the name of the DataSet object, filename specifies the file name, including the path, from which data is to be read, and mode specifies an XmlReadMode value. The ReadXml method always returns XmlReadMode that is used to read data. Following are the values that can be used for XmlReadMode:
| | |
| DiffGram | It is used to read a DiffGram, applying changes from the DiffGram to a DataSet object. |
| ReadSchema | It is used to read an inline schema and load data. |
| IgnoreSchema | It specifies that an inline schema is to be ignored and data is to be read into an existing DataSet object. The data is discarded if it does not match the existing schema. |
| InferSchema | It is used to ignore an inline schema, infer schema from data, and load the data. If a DataSet object already contains a schema, the schema is extended by adding new tables or columns to the tables. |
| Auto | It is the default XmlReadMode value. It works as the DiffGram, ReadSchema, or InferSchema value, whichever is appropriate for a particular situation. |
| Fragment | It is used to read XML documents. |
Rating:
Was this information helpful?
Other articles
- What is declarative security check?
- What is Integrated Windows authentication?
- What is a constructor?
- What is the WHERE clause?
- What is the syntax for the WriteXml(String, XmlWriteMode) method?