这是我正在使用的XML代码:$2.5020$3.0020$1.5010然后我写了一段简单的代码来练习使用XPath:load('sample.xml');$xpathvar=newDomxpath($xmldoc);$queryResult=$xpathvar->query('//lemonade/price');foreach($queryResultas$result){echo$result->textContent;}?>该代码运行良好,按预期输出所有柠檬水价格值。现在,当我更改查询字符串以仅选择属性设置为特定值的元素时,例如//lemonade[supplier="mothe