【发布时间】:2016-11-12 11:35:26
【问题描述】:
我正在尝试使用 importxml 函数来导入 XML。
<item>
<name>James</name>
<date>11/11/2016</date>
<description>Student</description>
</item>
如果我使用,
=importxml(URL, "//item")
我可以导入信息,但不能导入每条信息的名称。
我想拉这样的东西
name date description
James 11/11/2016 Student
任何 xPath 函数可以做到这一点?
【问题讨论】:
-
你能分享示例网址,以便我可以在发布前快速测试吗?您应该可以只输入“//item/name”,但有时可能会有细微差别
-
kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/… 在这里,我将使用“//dailyBoxOffice”提取数据,但我想提取每一列的名称,这些名称需要一一复制/粘贴。感谢您的评论!
-
你是指嵌套在dailyBoxOffice下的标题吗?以便您可以选择特定的列?
标签: xml xpath google-sheets