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

Dot Net is Platform Independent or Platform Dependent..?

2 Answers  


How does you handle this COM components developed in other programming languages in .NET?

1 Answers   Satyam,


How do you turn off cookies for one page in your site?

3 Answers   Siebel Systems,


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

2 Answers   Ksb,


The project which you have made, which methodology did you use?

0 Answers   Wipro,


How anonymous method is different from a lambda expression?

0 Answers  


When we go for html server controls and when we go for web server controls?

0 Answers  


What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?

0 Answers  


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

3 Answers  


What is an anonymous method?

0 Answers  


What is dot net architecture?

0 Answers  


What is the microsoft .net?

0 Answers  


Categories