User Profile
Collapse
-
I solved the problem: by not using a filestream, but writing directly to the file! It's strange that is goes wrong whern using the filestream, but I'm glad I solved it though... -
Additional information: I examined the XML file after the delete and this is what happens:
<maxdata xmlns="http://tempuri.org/maxdata.xsd">
<addresses street="serpeli ng" housenumber="10 " />
<addresses street="markstr aat" housenumber="12 7" />
</maxdata>es street="kerkstr aat" housenumber="4" />
</maxdat...Leave a comment:
-
XML file corrupt after deleting a record
Hi, I am new to programming in vb. net. I have this problem:
I created a form with a datagrid. I can add records and then save them to a XML file, using this code on the click event of a button (my dataset is called Maxdata1):
Dim fs As Stream
Me.BindingConte xt(Maxdata1, "addresses").En dCurrentEdit()
fs = New FileStream("D:\ temp\maxdata.xm l", FileMode.OpenOr Create)...
No activity results to display
Show More
Leave a comment: