Writing xml as a DiffGram
-
Hello, VS 2005 I am using a dataset to write to an xml file using the following dim dsIncidents as new Dataset() dsIncidents.WriteXML(xmlIncidentFile, XmlWriteMode.DiffGram) I use a different dataset to read the xml file dim dsReadIncidents as new Dataset() dsReadIncidents(xmlIncidentFile,XmlReadMode.DiffGram) 'When I check the number of tables, there is zero. However, if I do the following without using the DiffGram it works ok, and I can read the xml file and display the table. dsIncidents.WriteXML(xmlIncidentFile) dsReadIncidents(xmlIncidentFile) Now it will read in the xml file. But I need to read in the DiffGram as I need to track changes to the dataset. Can anyone tell me what could be the problem in reading and writing using the DiffGram. Many thanks for any suggestions, Steve