HP e-Commerce / XML director server appliance sa8250 - Users Guide
C H A P T E R 2 HP e-Commerce/XML Director Server Appliance SA8250 User Guide
18
Boolean Operators
Boolean operators are logical operators between expressions. These
operators are used in the PathExpression and the FilterExpression:
• <PathExpression> BooleanOperator <PathExpression>
• <FilterExpression> BooleanOperator <FilterExpression>
This table shows two Boolean operators.
This table shows examples of Boolean operators.
Operator Name Description
and
Logical AND operator Performs a logical AND operation
or
Logical OR operator Performs a logical OR operation
Boolean Operators
Sample Pattern Description
//benefits[@status and
medicalCarrier]
Matches if there is a benefits element, a status attribute, and a
medicalCarrier child element. status and medicalCarrier are
associated with the benefits element.
//benefits[@status or
medicalCarrier]
Matches if there is a benefits element, a status attribute, or a
medicalCarrier child element. status and medicalCarrier are
associated with the benefits element.
//benefits or //grade
Matches if there is a benefits or grade element
Boolean Expression Samples