Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 用于检索特定列表的Xpath语法_Xml_Xpath_Google Sheets - Fatal编程技术网

Xml 用于检索特定列表的Xpath语法

Xml 用于检索特定列表的Xpath语法,xml,xpath,google-sheets,Xml,Xpath,Google Sheets,我正在学习XPath的基础知识,但我似乎无法在我的Google Sheet文档中正确地使用此列表: 要在我的Google工作表中导入数据,我使用以下函数: =IMPORTXML("https://www.agronomiforestali-rer.it/ordine-di-ravenna/albo-iscritti";"//td") 有了这个,我可以成功导入整个页面,但是数据太多了。我只在乎上面的清单 有没有办法理解什么是正确的查询\u xpath?谷歌的工作表上说 查询-根据包含所需数据

我正在学习XPath的基础知识,但我似乎无法在我的Google Sheet文档中正确地使用此列表:

要在我的Google工作表中导入数据,我使用以下函数:

=IMPORTXML("https://www.agronomiforestali-rer.it/ordine-di-ravenna/albo-iscritti";"//td")
有了这个,我可以成功导入整个页面,但是数据太多了。我只在乎上面的清单

有没有办法理解什么是正确的查询\u xpath?

谷歌的工作表上说

查询-根据包含所需数据的结构类型,选择“列表”或“表格”

对于您的情况,它应该是
。我可以在uri中看到它的第三个表。因此,以下方法应该有效

=IMPORTHTML("https://www.agronomiforestali-rer.it/ordine-di-ravenna/albo-%20iscritti/", "table", 3)

是MS Excel还是Google Sheet?是Google sheetedit 2018年6月19日添加的Google Sheet而不是Excel ImportXML不支持XPath。根据文件。你检查过了吗?我没有看到xpath是受支持的