我将像这样传递xml文件:
File1.PostedFile.InputStream
//reading xml file.....
public static void readXMLOutput(Stream stream)
{
System.Xml.Linq.XDocument xml = System.Xml.Linq.XDocument.Load(stream);
var query = from p in xml.Element("ste").Element("Application")
//where (int)p.Element("Id") == 1
select Page;
foreach (var record in query)
{
Response.Write("dfe") + record.Element("dfe").Value;
}
错误:
错误 1:'System.Xml.Linq.XDocument.Load(string)' 的最佳重载方法存在一些无效的参数
无法将'System.IO.Stream'转换为'string'