操作代码如下: XmlDataDocument xmlDoc = new XmlDataDocument(dataSet); XmlNodeList nodeList = xmlDoc.DocumentElement.SelectNodes(@"//Table"); SelectNodes(里面如何写xpath表达式) ?效果如此sql一样:select distinct employeeid from Table解决方案:XmlNodeList nodeList = xmlDoc.DocumentElement.SelectNodes(@"//Table/EmployeeID[not(.=preceding::*/EmployeeID)]") 相关文章: 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2021-06-26 2021-11-04