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:

datasetobjectname.ReadXml(filename, mode);

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:

XmlReadMode valueDescription
DiffGramIt is used to read a DiffGram, applying changes from the DiffGram to a DataSet object.
ReadSchemaIt 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.
InferSchemaIt 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.
AutoIt is the default XmlReadMode value. It works as the DiffGram, ReadSchema, or InferSchema value, whichever is appropriate for a particular situation.
FragmentIt is used to read XML documents.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.