How can you make the ff expression to query just a local node. If the condition is not satisfied it must exit. It must not escalates thoughout the file. I want to filter using text which is sitting inside the grandchild of the targetnode : abc1/abc2/abc3.ChildNodes().innerText. I hope this is clear enough to know the answer. I have tried the ff xpath in many different forms,but it is not working. Thanks for helping.
Code:
For Each nod ...
If nod="abc1" Then
targetNode=nod.SelectSingleNode("./abc2/abc3[name= 'nddddd' and surname='sddddd'])
' I understand there is no need for the namespace manager and I have to use a dot instead of /nsp:abc2/....
If targetNode IsNot Nothing Then
Exit For
End if
End if
Next