Importxml Google电子表格“公式解析错误”

问题描述 投票:0回答:1

我正在尝试将XML中的值导入Google电子表格,其中包括:

=IMPORTXML("https://waterservices.usgs.gov/nwis/iv/?format=waterml,2.0&indent=on&sites=04214231&parameterCd=00060,00065&siteStatus=all", "//*[@id="collapsible25"]/div[1]/div[2]/div[2]/span[2]")

但是我收到了:

公式解析错误

我试图导入的具体数据是节点3.97中的<wml2:value>3.97</wml2:value>

xpath google-sheets formulas
1个回答
0
投票

在xPath参数上,用"替换'。这是因为"在Google表格公式中用作文本值分隔符。

其他有类似问题的问题:

© www.soinside.com 2019 - 2024. All rights reserved.