|
hi there!
the following code imports an xml-file.
Private Sub btnReadXML_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReadXML.Click
Dim filePath As String
filePath = "/forum/Dxmlfile.xml"
dsImport.ReadXml(filePath)
With DataGrid7
.DataSource = dsImport
.DataMember = "RUTER"
.CaptionText = .DataMember
End With
End Sub
Private Sub btnShowSchema_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowSchema.Click
Dim swXML As New System.IO.StringWriter()
dsImport.WriteXml(swXML)
TextBox2.Text = swXML.ToString
End Sub
End Class
What I want to achieve:
I have a database which consists of busroutes.
When I import a file (a new route)(ex.using OpenFileDialog) I want to save (add) the data into my database!
does anyone have a clue how to to this??
|
|
|
|
|
|
|
|