I am writing the file correctly and it gives me the right xml file
When I read it back, I am missing one element in the last row, it sets
it to the initial value before I saved the origional file? Any ideas?
Thanks,
I am loading the xml file with this code;
Dim myFileStream As New System.IO.FileStream _
(filename, System.IO.FileMode.Create)
' Create an XmlTextWriter with the fileStream.
Dim myXmlWriter As New System.Xml.XmlTextWriter _
(myFileStream, System.Text.Encoding.Unicode)
' Write to the file with the WriteXml method.
thisDataSet.WriteXml(myXmlWriter)
'for some reason the xml is skipping a Severity value
' RichTextBox1.Text = myXmlWriter.WriteRaw
myXmlWriter.Close()
myFileStream.Close()
I am reading the xml file back with this code;
' Create new FileStream to read schema with.
Dim fsReadXml As New System.IO.FileStream _
(xmlAd, System.IO.FileMode.Open)
' Create an XmlTextReader to read the file.
Dim myXmlReader As New System.Xml.XmlTextReader(fsReadXml)
' Read the XML document into the DataSet.
datasetRM.ReadXml(myXmlReader)
'datasetRM.ReadXml(xmlAd)
myXmlReader.Close()
fsReadXml.Close()