XML Source

Import XML data from arbitrarily structured XML content into cells in an existing spreadsheet document.

The XML Source feature allows XML content to be imported either partially or in full, depending on the structure of the XML content and the map definitions that the user defines. The user can specify multiple non-overlapping sub-structures to be mapped to different cell positions within the same document. The user can import either element contents, attribute values or both.

要访问此命令...

From the menu bar:

Choose Data - XML Source.

From the tabbed interface:

Choose Data - XML Source.

From toolbars:

Icon XML Source

XML Source


「XML 源」对话框

对话框由四部分组成。

源文件

允许您指定要导入到文档中的 XML 文件的路径。

映射到文档

此窗格将源 XML 内容的结构显示为树。最初为空, 在指定源文件时填充。

树中的每个元素可以是以下三种类型之一:

不重复出现的元素指在同一个父节点下只能出现一次的元素。它将映射为文档中的单个单元格。

重复出现的元素指同一个父节点下可多次出现的元素。对于多个记录条目,此类元素可作为单个记录条目的父节点。这些条目将导入到范围中,范围的高度与条目数目+额外的标题行一致。

已映射的单元格

此字段指定元素或属性链接到的文档中单元格的位置。如果是非重复出现的元素或属性, 可直接指向所链接的元素/属性的值即将导入的单元格。如果是重复出现的元素, 应指向即将导入整个记录条目加标题的区域左上角的单元格。

导入

按「导入」按钮将根据用户提供的链接定义开始导入进程。导入完成后, 对话框将关闭。

请支持我们!

请支持我们!