分类(.NET技术)
把XML格式的字符串读进DataSet
2009/05/06 17:32
string poststr = "<?xml version='1.0' encoding='UTF-8'?>";
poststr += "<MasMessage xmlns='http://www.xxx.com/interface'>";
poststr += " <version>1.0</version>";
poststr += " <TxnMsgContent>";
poststr += " <txnType>测试测试测试</txnType>";
poststr += " <cardNo>888888</cardNo>";
poststr += " </TxnMsgContent>";
poststr += "</MasMessage>";
DataSet ds = new DataSet();
StringReader getsr = new StringReader(poststr );
ds.ReadXml(getsr);
来自:本站原创
相关日志:
+引用(0) |
发表评论
| 昵称 密码 游客无需密码 |
| 网址 电邮 注册 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
验证码 请输入左侧图片中的字符
记住我







