Hi all:
I have posted a simlar question, but apparently nobody can answer.
Question: How do you turn an XML recordset into a SQL type recordset?
I'm using a dataset and datagrid, and here is the code:
Any help will be greatly appreciated.
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
I have posted a simlar question, but apparently nobody can answer.
Question: How do you turn an XML recordset into a SQL type recordset?
I'm using a dataset and datagrid, and here is the code:
Code:
Private DS As DataSet = New DataSet("DS")
Private TBL As DataTable = New DataTable("TBL")
Private xFile As String = "C:\d4d_485_OrderList.xml"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DS.ReadXml(xFile)
Me.DataGrid1.DataSource = DS
End Sub
Private Sub bConvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bConvert.Click
Dim i, j As Int16
For i = 0 To DS.Tables.Count - 1
TBL = DS.Tables(i)
For j = 0 To TBL.Columns.Count - 1
MsgBox(TBL.TableName & vbCrLf & TBL.Columns(j).ColumnName)
Next
Next
End Sub
Any help will be greatly appreciated.
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.