【问题标题】:Valid XPath does not return value for the IMPORTXML formula有效的 XPath 不返回 IMPORTXML 公式的值
【发布时间】:2013-03-23 13:17:55
【问题描述】:
我不明白如何获取属性?
此代码返回错误错误:xPath 查询未返回任何数据
=IMPORTXML(
"http://www.cbr.ru/scripts/XML_dynamic.asp?date_req1=01.01.2013&date_req2=15.03.2013&VAL_NM_RQ=R01235";
"/ValCurs/Record/@Date"
)
有类似问题Can't figure out how to get time attribute
【问题讨论】:
标签:
xml
xpath
google-sheets
【解决方案1】:
属性名必须小写
=ImportXML("http://www.cbr.ru/scripts/XML_dynamic.asp?date_req1=01.01.2013&date_req2=15.03.2013&VAL_NM_RQ=R01235";"/ValCurs/Record/@date")