My XmlFile looses its tree hierarchy after saving it
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I read my xml file into a dataset and set the datasource of a datagrid to access one of the datatables. Problem is that when new rows are added to the datagrid, and I call the WriteXml method, the new rows are added at the root. Following is an example: Then I set the DataSource to of a datagrid to "Position" table and after adding a couple of rows, the saved file looks like: Note that the new rows were added in "/root" instead of in "root/Database/positions"