J
JezB
I'm writing xml files from a typed dataset, but having problems after a row
has been deleted. Adding a row to an empty dataset and writing the xml i get
(for example)
<ScreenConfigDataset xmlns="http://tempuri.org/ScreenConfigDataset.xsd">
<DialectScreenConfig>
<FlavourID>1</FlavourID>
<FormID>EmployeeMaintenance</FormID>
<ControlKey>EmployeeNo</ControlKey>
<ItemKey>EmployeeNo</ItemKey>
<BackgroundColour>Yellow</BackgroundColour>
</DialectScreenConfig>
</ScreenConfigDataset>
which is fine, but then if I go and mark the row for deletion and write xml
again I get the invalid xml :-
<ScreenConfigDataset xmlns="http://tempuri.org/ScreenConfigDataset.xsd" />
<DialectScreenConfig>
<FlavourID>1</FlavourID>
<FormID>EmployeeMaintenance</FormID>
<ControlKey>EmployeeNo</ControlKey>
<ItemKey>EmployeeNo</ItemKey>
<BackgroundColour>Yellow</BackgroundColour>
</DialectScreenConfig>
</ScreenConfigDataset>
I would have expected the deleted row not to be written to xml. Am I doing
something wrong or is this a bug ?
has been deleted. Adding a row to an empty dataset and writing the xml i get
(for example)
<ScreenConfigDataset xmlns="http://tempuri.org/ScreenConfigDataset.xsd">
<DialectScreenConfig>
<FlavourID>1</FlavourID>
<FormID>EmployeeMaintenance</FormID>
<ControlKey>EmployeeNo</ControlKey>
<ItemKey>EmployeeNo</ItemKey>
<BackgroundColour>Yellow</BackgroundColour>
</DialectScreenConfig>
</ScreenConfigDataset>
which is fine, but then if I go and mark the row for deletion and write xml
again I get the invalid xml :-
<ScreenConfigDataset xmlns="http://tempuri.org/ScreenConfigDataset.xsd" />
<DialectScreenConfig>
<FlavourID>1</FlavourID>
<FormID>EmployeeMaintenance</FormID>
<ControlKey>EmployeeNo</ControlKey>
<ItemKey>EmployeeNo</ItemKey>
<BackgroundColour>Yellow</BackgroundColour>
</DialectScreenConfig>
</ScreenConfigDataset>
I would have expected the deleted row not to be written to xml. Am I doing
something wrong or is this a bug ?