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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How does cas works?

568


What is .net assembly?

574


what is dotnet architecture? can anyone explain that.

3600


What method do you use to explicitly kill a users session? How?

511


What should you do to store an object in a viewstate?

553






When a Static Constructor called in .NET?

602


Explain the different types of proxy patterns?

680


How to load the contents of an xml file into an xmldocument object?

590


What is the difference between vb.net and vc#.net?

534


Tell us what is the difference between struct and class?

486


How is a managed code executed?

697


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

2466


What is Code group in .Net with respect to CAS

1565


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

627


How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?

537