【发布时间】:2016-04-27 14:49:14
【问题描述】:
在下面的消息中,我想将 2 个“invunique”节点设置为参数 vParam。 我可以使用
轻松设置“cvalue”xpath(MyMsg.Body, "//*[local-name()='cvalue']") = vParam;
但我还没有找到在 1 个 XPath 语句中设置 2 个“invunique”节点的好方法,有什么想法吗?
<ns0:newcase xmlns:ns0="http://MyNamespace/v1-0">
<ns0:caseheader>
<ns0:caseunique>10</ns0:caseunique>
</ns0:caseheader>
<ns0:financials>
<ns0:invoices>
<ns0:invoice>
<ns0:caseunique>10</ns0:caseunique>
<ns0:invunique>10</ns0:invunique>
<ns0:invudfs>
<ns0:invudf>
<ns0:invunique>20</ns0:invunique>
<ns0:cvalue>cvalue_0</ns0:cvalue>
<ns0:otherdesc>otherdesc_0</ns0:otherdesc>
</ns0:invudf>
</ns0:invudfs>
</ns0:invoice>
</ns0:invoices>
</ns0:financials>
</ns0:newcase>
【问题讨论】:
标签: xml xpath biztalk biztalk-2013