XmlDataDocument被标记为Obsolete,说以后版本将删除,有什么替代的吗?
时间:2011-12-28
来源:互联网
[Obsolete("XmlDataDocument class will be removed in a future release.")]
public class XmlDataDocument : XmlDocument
由于DataSet直接读xml会丢失空格,目前用这个类来做xml到DataSet的转换。这个类标记成Obsolete,为什么没有替代品呢,一般Obsolete标记里会说被替换成什么什么吧
public class XmlDataDocument : XmlDocument
由于DataSet直接读xml会丢失空格,目前用这个类来做xml到DataSet的转换。这个类标记成Obsolete,为什么没有替代品呢,一般Obsolete标记里会说被替换成什么什么吧
作者: phommy 发布时间: 2011-12-28
可以用DataTable的ReadXml()与WriteXml()
作者: avon520 发布时间: 2011-12-28
XDocument
The XmlDataDocument class, which was supposed to allow one to treat DataSet objects as if they were XML DOM objects has been marked. While it is hard to think of a real use case for this functionality, one could still achieve it by combining DataSet.WriteXml with the much easier to use XDocument class.
http://www.infoq.com/news/2010/03/Obsolete-CLR4
The XmlDataDocument class, which was supposed to allow one to treat DataSet objects as if they were XML DOM objects has been marked. While it is hard to think of a real use case for this functionality, one could still achieve it by combining DataSet.WriteXml with the much easier to use XDocument class.
http://www.infoq.com/news/2010/03/Obsolete-CLR4
作者: Sandy945 发布时间: 2011-12-28
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28