** Maintenance of all services taking place on Saturday June 22, from 18:00 - 21:00 (GMT+2) **
 
1
0
-1
e.g., using getXPathElement for the below string "DevCapPool/DevCap[@Name=\"Component\" and NumberState[@Name=\"Amount\"]]"; if not returning any element. where as individually its returning the correct element . say "DevCapPool/DevCap[NumberState/@Name=\"Amount\"]" I want to validate both condition and return the devCap
    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      getXPathElement and getXPathValue are really only quick shortcuts for simple expressions. They are by no means designed as a complete XPath parser for complex expressions with multiple predicates or result sets.

      You will need to use a real xpath parser such a jaxp for that.

        CommentAdd your comment...