XPath名称中的计数器变量?

描述 description

环境

  • Campaign Classic
  • Campaign
  • Campaign Standard

是否可以像下面在xpath名称中给定的那样使用计数器变量?

set expr=”@counter” xpath=”/test/element@counter”


Trying this shows an error with the @counter in the bracket in the xpath, but using a number instead set expr=”@counter” xpath=”/test/element1” works just fine.

Is there a function for adding to a DOMDocument Element, either by an append function or by using the above mentioned counter variables?

解决方法 resolution

xpathExpr将起作用。

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f