开发者

How to traverse back to the parent node in the XML file by using Xpath(using XSLT) query?

开发者 https://www.devze.com 2023-01-15 17:03 出处:网络
Let us have a xml tree of depth N. I have traveresd the last node means i am at last note. Now i wanted to go back to some level up (say at N开发者_JS百科-3) in the xml tree from that last node.

Let us have a xml tree of depth N. I have traveresd the last node means i am at last note. Now i wanted to go back to some level up (say at N开发者_JS百科-3) in the xml tree from that last node.

Please let me know the syntax for the XPATH query so that i can reached at intended node in the xml tree.


Use:

ancestor::node()[3]

or

../../..
0

精彩评论

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