ADO.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2581 Page Views: 

What are the various methods provided by the dataset object to generate XML?



Posted By: Avi Date: 8 October 2009 03:49:37 AM
 Answer:

DataSet object provides following methods to generate XML:

1) ReadXML
Reads a XML schema and data in to Dataset.

2) WriteXML
Writes data, and optionally the schema, from the DataSet into an XML file and saves it to disk.

3) GetXML
It returns an XML string that is a representation of the data stored in the DataSet. GetXml returns XML as a string, so it requires more overhead than WriteXml to write XML to a file.


Posted By: eTechPlanet


Date: 8 October 2009 03:49:37 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image H4KNgy
Related Questions
ADO.Net : How do you check number of rows affected by update query?

How do you check number of rows affected by update query?

ExecuteNonQuery Method on SqlCommand returns number of rows affected.
Category: ADO.Net Date: 10/14/2010 5:01:48 AM
ADO.Net : Is it possible to use single code to work with different data providers?

Is it possible to use single code to work with different data providers?

Yes. By using IDbConnection, IDbCommand(you can create command object using IDbConnection.CreateComm....
Category: ADO.Net Date: 10/14/2010 5:01:48 AM
ADO.Net : Can DataGridView use DataSet as data source?

Can DataGridView use DataSet as data source?

Yes
Category: ADO.Net Date: 10/14/2010 4:09:47 AM
ADO.Net : What is Entity Framework?

What is Entity Framework?

ADO.NET Entity Framework is an object-relational mappin framework
Category: ADO.Net Date: 10/14/2010 4:09:47 AM
ADO.Net : Can you edit XML data using XPathNavigator created from XPathDocument class?