M
Marcolino
Hi all,
I have an application that needs to import XML files into Database.
This XML file was generated by this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim cmdXML As OleDb.OleDbCommand
Dim DScmdXML As OleDb.OleDbDataAdapter
Dim DSXML As New DataSet()
Dim sqlXML As String = "SELECT * FROM List_Piante"
cmdXML = New OleDb.OleDbCommand(sqlXML, conn)
DScmdXML = New OleDb.OleDbDataAdapter(cmdXML)
DScmdXML.Fill(DSXML, "List_Piante")
DSXML.WriteXml("Piante.xml", XmlWriteMode.WriteSchema)
Dim xmlSW2 As System.IO.StreamWriter = New
System.IO.StreamWriter("c:\Piante.xml")
DSXML.WriteXml(xmlSW2, XmlWriteMode.WriteSchema)
xmlSW2.Flush()
xmlSW2.Close()
End Sub
I need to import this XML file into a NEW created ms-access table, but
i don't know how, and i cannot find any helpful suggestion on google.
Many Thanks
I have an application that needs to import XML files into Database.
This XML file was generated by this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim cmdXML As OleDb.OleDbCommand
Dim DScmdXML As OleDb.OleDbDataAdapter
Dim DSXML As New DataSet()
Dim sqlXML As String = "SELECT * FROM List_Piante"
cmdXML = New OleDb.OleDbCommand(sqlXML, conn)
DScmdXML = New OleDb.OleDbDataAdapter(cmdXML)
DScmdXML.Fill(DSXML, "List_Piante")
DSXML.WriteXml("Piante.xml", XmlWriteMode.WriteSchema)
Dim xmlSW2 As System.IO.StreamWriter = New
System.IO.StreamWriter("c:\Piante.xml")
DSXML.WriteXml(xmlSW2, XmlWriteMode.WriteSchema)
xmlSW2.Flush()
xmlSW2.Close()
End Sub
I need to import this XML file into a NEW created ms-access table, but
i don't know how, and i cannot find any helpful suggestion on google.
Many Thanks