Xpath Error not detected "slash before predicate"
Posted: Mon Nov 16, 2020 7:22 pm
I'm currently running Oxygen editor 22.1 and an Xpath error that should have been reported as an error is not showing up. Perhaps I'm missing something. Here's some sample xml and xpath that I'm running.
If I run the xpath //name/[surname eq 'invalid'] in xpath evaluator I get a query returned no results. Shouldn't it actually catch that there is a '/' before the start of the predicate and report that as an invalid xpath?
Code: Select all
<document> <names> <name> <surname>testOne</surname> </name> <name> <surname>testTwo</surname> </name> <name> <surname>testThree</surname> </name> </names> </document>