将XmlDocument转换成XDocument

XmlDocument xml=new XmlDocument();
xml.LoadXml(strXmlText);
                XmlReader xr=new XmlNodeReader(xml);
                XDocument xDocXml = XDocument.Load(xr);

 

posted @ 2014-02-18 17:55  DCLancer  阅读(293)  评论(0编辑  收藏  举报
(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true; c.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.clicki.cn/boot/48212'; var h = document.getElementsByTagName('script')[0]; h.parentNode.insertBefore(c, h); })();