IMPORTXML:这 xpath_query 正确吗?
IMPORTXML: is this xpath_query correct?
我想知道下面的公式是否正确?
=IMPORTXML("http://publications.elia.be/Publications/Publications/ImbalanceNrvPrice.v1.svc/GetImbalanceNrvPrices?day=2014-04-14","//PNeg")
它给出了一个错误 #N/A
但一些谷歌搜索告诉我 importxml
是一个善变的东西。它应该导入一个包含 24 个值的列表,从 57.48
开始,但是因为我得到一个错误,我只想确定问题是由函数引起的,而不是我的 xpath_query 错误,因为这是我第一次尝试这样的事情。
我成功解析了所有文件
//*
和您的选择器:
//PNeg
一定可以,但是 there is error in Column: 190 Error: Can not find declaration of element 'ImbalanceNrvPriceResponse'. - 可能就是这个原因。
这个有效:
=transpose(regexextract(importdata("http://publications.elia.be/Publications/Publications/ImbalanceNrvPrice.v1.svc/GetImbalanceNrvPrices?day=2014-04-14"),rept("<PNeg>(.*)<\/PNeg>.*",96)))
我想知道下面的公式是否正确?
=IMPORTXML("http://publications.elia.be/Publications/Publications/ImbalanceNrvPrice.v1.svc/GetImbalanceNrvPrices?day=2014-04-14","//PNeg")
它给出了一个错误 #N/A
但一些谷歌搜索告诉我 importxml
是一个善变的东西。它应该导入一个包含 24 个值的列表,从 57.48
开始,但是因为我得到一个错误,我只想确定问题是由函数引起的,而不是我的 xpath_query 错误,因为这是我第一次尝试这样的事情。
我成功解析了所有文件
//*
和您的选择器:
//PNeg
一定可以,但是 there is error in Column: 190 Error: Can not find declaration of element 'ImbalanceNrvPriceResponse'. - 可能就是这个原因。
这个有效:
=transpose(regexextract(importdata("http://publications.elia.be/Publications/Publications/ImbalanceNrvPrice.v1.svc/GetImbalanceNrvPrices?day=2014-04-14"),rept("<PNeg>(.*)<\/PNeg>.*",96)))