Here is a simple example which writes to the first row of the first table in
the XML datafile. You should be able to take it from there.
Public Shared Function ChangeXMLData(strXMLDataFile as string, ,strNewData
as string) as boolean
try
Dim dt as Datatable
Dim ds as New DataSet
ds.ReadXml(strXMLFile, XmlReadMode.InferSchema)
Dim dt as Datatable = ds.tables(0)
dt.rows(0)("YourColumnFieldName") = strNewData
ds.WriteXML(strXMLDataFile)
return true
catch
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.