Sophie Huang
Time and tide wait for no man.
摘要: 1. 添加命名空间using System.Xml;2. 加载xml方法一:XmlDocument xmlDoc=new XmlDocument();xmlDoc.Load("1.xml");方法二:WebClient wc = new WebClient();//这里获取的是url的形式的xml,所以需要webclientStreamReader sr = new StreamReader(wc.OpenRead(strXML));//返回string流XmlDocument xmlDoc= new XmlDocument();xmlDoc.LoadXml(sr.Read 阅读全文
posted @ 2013-12-11 19:49 Sophie Huang 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 从w3c看到的例子,自己测试了一下。ok。js解析xml,暂时没有找到可以跨域的办法。跨域的话,只能通过后台去写。javascript页面 Get xml information1.xmlthis is titlethis is content2013-12-10 13:50:44 阅读全文
posted @ 2013-12-11 19:41 Sophie Huang 阅读(391) 评论(0) 推荐(0) 编辑