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

i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

0 Answers  


Explain the difference between .net 2000 and .net 2005(features)? Which one is better?

0 Answers  


What is a manifest in .net?

0 Answers  


How many types of generations are there in a garbage collector?

0 Answers  


What is a Manifest?

1 Answers   CTS,






Explain the difference between managed and unmanaged code?

0 Answers  


What is a DLL?

1 Answers  


What is the use of design pattern?

0 Answers  


What do you mean by Code Access Security in .NET?

0 Answers  


Please explain what is the difference between constants and read-only variables?

0 Answers  


Explain is the jit an interpreter?

0 Answers  


Explain what is a delegate?

0 Answers  


Categories