更新时间:2023-11-06 20:39:34
问题是,当您遵循XML规则时,必须具有单个根元素.但是,当您真的想丢失它时,最直接的方法是替换</NewDataSet>"和< NewDataSet>"和 "".***使用IndexOf和LastIndexOf之类的方法将其删除.
http://msdn.microsoft.com/en-us/library/7wtc81z6.aspx [ ^ ]
祝你好运!
The problem is that when you follow XML rules it is mandatory to have a single root element. But when you would really like to lose it, the most straight way would be to replace "</NewDataSet>" and "<NewDataSet>" with "". It would be better to use methods like IndexOf and LastIndexOf to remove it.
http://msdn.microsoft.com/en-us/library/7wtc81z6.aspx[^]
Good luck!