开发者

Appending DataTables to an XML file

I need to write multiple DataTables to an XML file.

Once I write a DataTable to an XML file, after tha开发者_如何学运维t the second DataTable is overwriting the XML file.

Is there any append method so that I can append multiple DataTables to a single XML file??


DataSet.GetXml() method gives xml string - you could have use that to append to file but resulting xml file would be invalid.

Does your dataset schema is same? In such case, you can merge data from datasets together and then write the combined data into an xml file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜