Simple Queries of Type X AND (Y OR Z)

I had a few problems when using X-Query on a complex database…

What would be the best way to do such a query. The documentation does not give details about complex nested queries. Can someone help me with this.


The XQuery syntax (just like XPath) includes the operators “and” and “or”. They must be spelt in lower-case. So you can write, for example,

//item[@code and (@a=3 or @a=4)]

Michael Kay