FINDKEYS

可使用 FINDKEYS 指定筛选器,从 XML 变量中提取特定关键字。关键字可提取为 XML。例如,从 XML 变量中提取关键字,然后将其写入第二个 XML 变量。

语法

FINDKEYS("XML_properties","key","property","value" {,"key","property","value"},"separator")

注意

如果未指定分隔符,此函数将返回 #VALUE!,即便此函数用于返回单个关键字。

示例

此示例从 gv_setproperty 返回 [Product] 关键字:

=FINDKEYS(GlobalVariables.gv_setproperty.Text,"[product]","unique", "[product].[all tires].[car tires all season]",":")

示例

此示例从 gv_setproperty2 中返回 [Product] 和 [Region] 关键字,以冒号隔开:
=FINDKEYS(GlobalVariables.gv_setproperty2.Text,"[product]","unique",
"[product].[all tires].[car tires all season]","[region]","unique",
"[region].[all regions].[europe]",":")