我正在尝试获取给定城市的国家名称,这是我对Warszawa的公式:=importxml("http://api.geonames.org/search?q=warszawa&maxRows=1&style=FULL&username=glebvk";"/geonames/geoname1/Countrycode")
我得到了"Error: Imported content is empty."
发布于 2014-12-02 09:29:08
将XPath查询从/geonames/geoname[1]/Countrycode更改为/geonames/geoname[1]/countryCode。XPath查询区分大小写。
https://stackoverflow.com/questions/27239506
复制相似问题