Xpath For All Values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derek Hart

    #1

    Xpath For All Values

    Trying to figure out how to do an xpath that has all values equal to 0.

    //Record/AccidentIncome[.=0]

    I know this will find ANY instance where AccidentIncome = 0, but I need to
    determine if ALL nodes that have //Record/AccidentIncome equal to 0. Stated
    another way, I cannot figure out how to do the opposite - determine if any
    node has a value greater than zero, which is easy
    //Record/AccidentIncome[.>0] - but then use a keyword like not to reverse it
    and get a true statement.

    So if I have 2 nodes, and one of them has AccidentIncome = 5000, I wish this
    statement would become true, but it does not.

    not //Record/AccidentIncome[.>0]

    Please help.


Working...