| | |
append to XML file
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2006
Posts: 16
Reputation:
Solved Threads: 0
I was saving some data to a new XML file using the following code
But now i also require to append the data to an existing XML file.
Can someone help me with the appending part.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Public myFileName, NewFileSave As String Dim xml As New ChilkatXml Dim outXml As New ChilkatXml Dim node As ChilkatXml Dim nextNode As ChilkatXml Private Sub Command47_Click() CommonDialog1.ShowSave NewFileSave = CommonDialog1.FileName MsgBox NewFileSave xml.SaveXml NewFileSave MsgBox "Saved" CancelButton: Exit Sub
But now i also require to append the data to an existing XML file.
Can someone help me with the appending part.
I've never heard of the ChilkatXml object before.... I'm guessing it's a module that perhaps you installed.... you might want to check the documentation on it, I'm sure it has an option for appending data. In VB, you can open a file for appending as such:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
open filename for append as #1
•
•
Join Date: Apr 2006
Posts: 16
Reputation:
Solved Threads: 0
Yes i have installed the ChilkatXml module.
I have checked the documentation of ChilkatXml but could not get much on the appending part.
Have tried
open filename for append as #1
but in my application it is not working and is overwriting the exisitng file.
Is there any other method by which i can append to a file ???
Thanks.
Amit
I have checked the documentation of ChilkatXml but could not get much on the appending part.
Have tried
open filename for append as #1
but in my application it is not working and is overwriting the exisitng file.
Is there any other method by which i can append to a file ???
Thanks.
Amit
Only if you want to get crazy, and try to do it through a dos command line...say, using shell, or making a batch file, and then shelling the batch file. Opening a file for append should never over-write anything, unless there is already nothing there. Appending a file means literally to add to the end of. I suppose you could post your code that appends, so we can check it out.
![]() |
Similar Threads
- [urgent] HTML form => XML file (JSP)
- Unzip zipped xml file (VB.NET)
- problem reading xml file in c# (C#)
- parsing error (XML file-java-schema) (Java)
- Pass XML file contents to a hash table. (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Dynamic menu
- Next Thread: How to create a database during the runtime in VB6?!
Views: 7668 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






