XPath expressions validity
See original GitHub issueXPath expressions are considered with logical OR
. However it would be nicer to change that to AND
too. Best it would be to select between OR
and AND
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to solve the error "Not a valid XPath expression"
1 Answer 1 · As you are passing the xpath within single quotes i.e. '' you can't use the same for the attribute...
Read more >Xpath | Citrus Reference Guide
This is how you can add very powerful message element validation in XML using XPath expressions. Extract variables with XPath. Imagine you receive...
Read more >XPath expression evaluation - IntelliJ IDEA - JetBrains
IntelliJ IDEA lets you evaluate XPath expressions in two modes: ... Semantic checks include validation of used namespace prefixes, useless XPath expressions ...
Read more >XPath Quick Reference (XQuery and XSLT Reference Guide)
To test an XPath expression for validity as an extract-path value, use the XQuery function cts:valid-extract-path or the Server-Side JavaScript function cts.
Read more >Using Expressions and Conditions - Oracle Help Center
Creating XPath Expressions and Functions Using the XPath Wizard ... Note that validation does not check the validity of workflow variable referenced by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we need just one radio button saying how to combine all the expressions - OR or AND. Why need to be more complex? Currently actually it is not really clear at first look how they are combined…
Why not use XPath expressions to accomplish such cases? (I am not sure about your use case)
For example this input xml:
This xpath would succeed:
.//user[login='user1' and name='User 1' and profile/id[text()='1'] ]
This whould fail:
.//user[login='user1' and name='User 1' and profile/id[text()='5'] ]