9
当xml在字符串变量中时,如何加载XDocument?如何在xml在字符串变量中时加载XDocument?
当xml在字符串变量中时,如何加载XDocument?如何在xml在字符串变量中时加载XDocument?
XDocument.Parse(yourvariable)
http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.parse.aspx
我认为在.NET 3.5和更高这只可用。 – 2009-11-26 16:38:14
如果他在XmlDocument上使用XDocument,他已经在使用.NET 3.5,可能使用LINQ to XML! – 2009-11-26 16:46:47
好点。我误解了这个问题。 – 2009-11-26 16:58:08