XML : How do i write/Load my Dataset To/From XML

I currently have a table ready to take input from a form in my Stocklist App system.

I would like to be able to save the data from the table into an XML file ready to load again the next time the user opens the program.

The current code i am using is this...

  Dim entryno As Integer = 1  IDColumn.Table.WriteXml("C:\Users\User\Documents\Stocklist\XML\" & entryno & ".xml")  entryno += 1    

But nothing is being created?

My Dataset is called "StockdataDataSet.xsd"

my datable is called "DataTable1"

Any suggestions?

No comments:

Post a Comment