Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Here is node structure
Home Level1Node1 Level2Node1 Level2Node2 Level2Node3 Level2Node4 Level3Node1 Level3Node2 Level3Node3 Level3Node4 Level1Node2 Level2Node1 Level2Node2 Level2Node3 Level2Node4 Level3Node1 Level3Node2 Level3Node3 Level3Node4 Level1Node3 Level2Node1 Level2Node2 Level2Node3 Level2Node4 Level3Node1 Level3Node2 Level3Node3 Level3Node4 Level1Node4 Level2Node1 Level2Node2 Level2Node3 Level2Node4 Level3Node1 Level3Node2 Level3Node3 Level3Node4
I want to get all node of docType1 and docType2 at level 1 and level 2.
Thanks Manish
Hi Manish,
Would something like this work?
//*[@level>1][@level<4][self::docType1 or self::docType2]
In your example Home would be level 1 so the xpath looks for anything after this but before level 4 which is labeled level 3 on your node structure.
Many thanks Paul !!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Xpath expression for nu-picker
Here is node structure
I want to get all node of docType1 and docType2 at level 1 and level 2.
Thanks Manish
Hi Manish,
Would something like this work?
In your example Home would be level 1 so the xpath looks for anything after this but before level 4 which is labeled level 3 on your node structure.
Many thanks Paul !!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.