中证500指数市盈率走势图
摘要: 今天碰到一个问题,就是调用对方的一个接口,对方的接口返回的是 XML 格式的字符串,即,直接 DataTable.WriteXml(),而我用 WebClient的 DownloadData 下载下来后,想再把这些 XML 转换为 DataTable,费了一翻周折后,转换成功,下面是代码:System.Net.WebClient wc = new System.Net.WebClient();wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");string url = & 阅读全文
posted @ 2010-12-29 10:45 寻自己 阅读(824) 评论(0) 推荐(0) 编辑