Sending Data to an XML file

G

Guest

I have created an XML file, generated the schema, and added a typed DataSet
(MySet1) to my project.

I have tried adding the new row to the XML file using the following methods:

Dim row As MySet.DetailsRow = MySet1.Details.NewDetailsRow()

'all fields have been set, such as:
row.FirstName = txtFirstName.text

MySet1.Details.Rows.Add(row)
'I also tried
MySet1.Details.AddDetailsRow(row)

The first method did not add a new row, and the second attempt managed to
overwrite the original row in the XML file.

I managed this fine using C#, but it doesn't translate over to VB .NET very
well (an extra parameter is expected in C# for the second attempt).

Any help would be much appreciated.
 
G

Guest

I should add that this is a Web application, not Windows.

Help still required, though!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top