Using Boolean Expressions

You can specify Boolean expressions in the subqueries in filters. You specify the Boolean AND, OR, and NOT operators like this:

You can use parentheses to group collection specifications and operators for clarity or where the normal precedence is inadequate to express an operation.

Case Sensitivity

Operators are case sensitive. Spaces are not significant. You can omit them or include them for clarity.

Examples

The following query returns all authors who have at least one degree and one award:

author[degree and award] 
               

            

The next query finds all authors who have at least one degree or award and at least one publication:

author[(degree or award) and publication] 
               

            

Following is a query that finds all authors who have at least one degree and no publications:

author[degree and not(publication)] 
               

            

 
Free Stylus Studio XML Training: