我正试图获得这个城市的国名,这是我对华沙的公式: = IMPORTXML( “http://api.geonames.org/search?q=warszawa&maxRows=1&style=FULL&username=glebvk”; “/ GEONAMES / geoname [1] / COUNTRYCODE”)
我得到"Error: Imported content is empty."
答案 0 :(得分:1)
将您的XPath查询从/geonames/geoname[1]/Countrycode
更改为/geonames/geoname[1]/countryCode
。 XPath查询区分大小写。