codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  how to save data from an xml-file into access database  tomba at 12:48 on Wednesday, December 03, 2003
 

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??









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: import contacts of msn/yahoo
•  Re: javascript , php echo, php include
•  Re: Write text strings to Serial Port
•  Re: how to refresh the parent window`s parent?
•  Re: javascript, get the color assigned by class
•  Re: UNC Path or Mapped Drive with FSO
•  Re: Change link style (color) based on current page (url)
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: onmouseover change image and text


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010