How can we convert XML data into DataBase table IN .Net?

Answers were Sorted based on User's Feedback



How can we convert XML data into DataBase table IN .Net?..

Answer / naveen kumar

dSet.ReadXml(Server.MapPath("Forms.xml"))

Is This Answer Correct ?    14 Yes 3 No

How can we convert XML data into DataBase table IN .Net?..

Answer / om namo bagavathe vasudevaya n

DataSet ds=new DataSet();
ds.ReadXml(Server.MapPath("XMLFILENAME.xml"));
DataTable tb=new DataTable(ds.Tables(0));
this tb(object) is Datatable contain XmlFileData.

Is This Answer Correct ?    6 Yes 1 No

How can we convert XML data into DataBase table IN .Net?..

Answer / lince

Dim xmlreadFile As XmlReader
Dim ds As New DataSet
Dim dt As New DataTable
xmlreadFile = XmlReader.Create("product2.xml", New XmlReaderSettings)
ds.ReadXml(xmlreadFile)
dt = ds.Tables(0)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

How do we access crystal reports in .net?

0 Answers  


Explain manifest & metadata.

5 Answers   Wipro,


What is assemblies in .net?

0 Answers  


What is the difference between override and overload in a method?

0 Answers  


Explain what is the difference between a class and an object?

0 Answers  






What tools is used to develop .NET applications?

0 Answers  


Is Driver Script any how related to AOM?

0 Answers   TCS,


What is the difference between Dataset and DataReader? Can u breif me ADO.net classes and architecture

2 Answers   Deloitte,


Explain can the validation be done in the server side? Or this can be done only in the client side?

0 Answers  


What is Assembly manifest? what all details the assembly manifest will contain.

1 Answers  


Explain how to manage pagination in a page using .net?

0 Answers  


Describe the use of following com+ services jit activation, queued components, object pooling.?

0 Answers  


Categories