假设使用以下代码成功加载XmlDocument:vardoc=newXmlDocument();doc.Load(stream);这是XML流的示例部分(完整的XML流大约有10000个ProductTable):Chair29.5如何使用Linq访问ProductName和Price元素?谢谢。 最佳答案 我建议使用XDocument而不是XmlDocument(后者不适用于LINQtoXML)。使用XDocument.Load(...)方法加载您的“真实”XML。stringxml=@"Chair29.5";XDocumentx