471,594 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

Adding data (autoincrement) into a xml file with the help of a dataset


I have a strange problem with my xml file. In the schema of this xml
file I have set one column to autoincrement. When I enter the data in
my xml file directly, the autoincrement-column gets its correct

Now I want to add new data with the help of a dataset. I use the
following lines of code:

Dim ds_functions As New DataSet

Dim drCurrent As DataRow
drCurrent = ds_functions.Tables(0).NewRow
drCurrent(1) = Me.txt_bla.Text

Dim sw As System.IO.StreamWriter = New
sw.Write(ds_functions.GetXml.ToString) sw.Flush()

If I have a look at the data of the new created xml file the
autoincrement-column has the correct value (perfect), but this data is
not available in the xml-view of this file (in Visual Studio.NET
2003). This is a problem because when I try to read the new xml file
with the help of a dataset, the values of the ID column are missing.

Hope anyone can help me.
Thanks in advance,
Nov 12 '05 #1
0 1517

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Eric Petruzzelli | last post: by
reply views Thread by IMS.Rushikesh | last post: by
3 posts views Thread by Leo | last post: by
6 posts views Thread by Dennis | last post: by
reply views Thread by cms3023 | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.