开发者

asking for a XPath query string

开发者 https://www.devze.com 2023-01-05 16:54 出处:网络
How to parse the \"File\" node under \"File and Folder Items\" using Xpath <TreeView> - <Node>

How to parse the "File" node under "File and Folder Items" using Xpath

<TreeView>
- <Node>
  Catalog 
- <Node>
  Device Items 
  <Node>A1</Node> 
  <Node>A2</Node> 
  </Node>
- <Node>
  File and Folder Items 
  <Node>File</Node>              <-- here!!!
  <Node>Folder</Node> 
  </Node>
  <No开发者_Python百科de>CCC</Node> 
  </Node>
  </TreeView>


//Node[normalize-space(text())="File and Folder Items"]/Node[1]

See example.

0

精彩评论

暂无评论...
验证码 换一张
取 消