Node XPath- Select Node ignoring only one particular child Node

34 views Asked by At
<a> 
 <b>
     <c>A2</c>
 </b>
</a>

Here I want an xpath to pick node only if the node value is c,d,e ...(or it can be any other value) and ignore only if the node is 'z' (in place of c)

I tried following expression but it is not working

xPath: //*[local-name() = 'a']//*[local-name() = 'b']/*[not(local-name() = 'z')]
xPath: //*[local-name() = 'a']//*[local-name() = 'b']/*[not(starts-with(local-name(),'z'))]
0

There are 0 answers