【发布时间】:2020-07-09 07:38:43
【问题描述】:
getNodesAsync 有一个名为xPath 的参数,我认为它可以帮助我查询我的自定义 XML。我认为它出现故障,因为它仅在我传递* 时返回节点。任何其他路径(即使它存在),返回一个空数组。
复制步骤
- 点击
Run添加xml
<AP xmlns="accordproject.org">
<template xmlns="acceptance-of-delivery">
<shipper>Aman Sharma</shipper>
</template>
</AP>
-
Get node应该在/AP/template处获取节点。 -
Delete XML将删除 customXML。
ScriptLab sn-p 链接:https://gist.github.com/algomaster99/fc10bc8fcf3429f1d3ad1fbadaa3216f
【问题讨论】:
标签: office-js word-addins