Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix B Format of Search, Return and Sort Expressions

B.3 Search Expressions

Search expressions are used to specify search conditions that apply to XML documents to be retrieved

A search expression consists of one or more conditional expressions and filter expressions.

Refer to B.3.1 Conditional Expressions and B.3.8 Filter Expressions for more information on conditional expressions and filter expressions respectively.

To specify multiple conditional expressions or filter expressions, use logical operators.

Refer to Logical Operators below for more information.

The format for search expressions is shown below.

[Figure B-9 Search Expression Definition Format]

Search expressions must have at least one conditional expression or filter expression.

mark1Logical Operators

Logical operators indicate the logical relationship between two adjacent conditional expressions and filter expressions when multiple expressions are specified.

Logical operators are briefly explained in the following table.

[Table B-2 Logical Operators]

Logical operator

Type of logical operation

Description

AND

AND operation

Links pairs of conditional expressions with the AND operator.
Evaluates to TRUE only if the results of both conditional expressions are TRUE.
Evaluates to FALSE if either or both conditional expressions are FALSE.

OR

OR operation

Links pairs of conditional expressions with the OR operator.
Evaluates to TRUE if either or both conditional expressions are TRUE.
Evaluates to FALSE only if both conditional expressions are FALSE.

In the following example, ([conditional expression 2] OR [conditional expression 3]) is evaluated first.

: Represents a space


DownB.3.1 Conditional Expressions
DownB.3.2 Keywords
DownB.3.3 Escape Characters
DownB.3.4 Patterns
DownB.3.5 Character String
DownB.3.6 Numeric Values
DownB.3.7 Compatible Format
DownB.3.8 Filter Expressions

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006