I need to compare one value to multiple other values (a query resulting in more than one element), therefore, if a value is included in some other values. In SQL there’s the “IN” operator for that, but what about XQuery?
Thanks for any hint 🙂
I need to compare one value to multiple other values (a query resulting in
Share
The XQuery
=operator behaves exactly as you describe:is
true.The
eqoperator is the version for comparing single values.However if you are looking for whether a node
$nodeis in a particular list of nodes$sequence, then you want