一个例子:
var_xpath="string(/*[local-name()='Root' and namespace-uri()='http://XpathInOrchTest.In']/*[local-name()='SS' and namespace-uri()=''and position( )='2']/*[local-name()='f' and namespace-uri()='']/text( ))";
System.Diagnostics.Trace.WriteLine(xpath(Message_1,var_xpath));

功能:取第2个SS节点的f子节点值。

要点:基本路径通过schema中的节点上的UI属性处直接拷贝,作为编辑xpath路径的基础;添加条件如position( )='2';在路径前添加string( ),String不支持。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2022-01-26
  • 2021-11-20
  • 2022-02-20
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案