1

我正在尝试根据城市获取国家名称,这是我的华沙公式:=importxml(" http://api.geonames.org/search?q=warszawa&maxRows=1&style=FULL&username=glebvk ";"/geonames/geoname [1]/国家代码")

我明白了"Error: Imported content is empty."

4

1 回答 1

1

将您的 XPath 查询从 更改/geonames/geoname[1]/Countrycode/geonames/geoname[1]/countryCode. XPath 查询区分大小写。

于 2014-12-02T01:29:07.877 回答