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

B.3.2 Keywords

Keywords are either patterns, strings, or numeric values that are compared with the values of element nodes in XML documents as specified by path expressions, the values of text nodes in XML documents as specified by text expressions, or the value of attribute nodes in XML documents as specified by attribute expressions.

mark1Escape Characters

To specify the following characters in patterns or strings, precede them with the escape character "\".

Refer to B.3.3 Escape Characters for more information on escape characters.

mark1Entity References

Entity references represent particular characters. If entity references are specified in XML documents, characters that they represent will be searched. For keywords, it is possible to specify either the character itself or the entity reference shown in the following table.

[Table B-3 List of Entity References]

Entity references

Symbol represented

<

<

&gt;

>

&amp;

&

&apos;

'

&quot;

"

mark1Keywords and Relational Operators

Various search conditions can be specified by combining keywords and relational operators. The following table shows the meaning of each combination.

mark2Patterns

Relational operator

Search type

Description

=

Partial match

TRUE if the value of the element node, the value of the text node, or the value of the attribute node contains a string that matches the pattern specified by the keyword.

!=

TRUE if the value of the element node, the value of the text node, or the value of the attribute node does not contain a string that matches the pattern specified by the keyword.

mark2Character String

Relational operator

Search type

Description

==

Complete match

TRUE if the value of the element node, the value of the text node, or the value of the attribute node and the string specified by the keyword match completely.

!==

TRUE if the value of the element node, the value of the text node, or the value of the attribute node and the string specified by the keyword are even partially different.

<, <=, >, >=

Size comparison

Compares the size of the value of the element node, the value of the text node, or the value of the attribute node and the string specified by the keyword using the character code.

mark2Numeric Values

Relational operator

Search type

Description

=

Match

TRUE if the numeric value contained in the element node, the value of the text node, or the value of the attribute node matches the numeric value specified by the keyword.

!=

TRUE if the numeric value contained in the element node, the value of the text node, or the value of the attribute node does not match the numeric value specified by the keyword.

<, <=, >, >=

Size comparison

Compares the size of the numeric value of the element node, the value of the text node, or the value of the attribute node and the numeric value specified by the keyword.


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006