Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Part 1 The Basic for Developing Application | > Chapter 3 Data Search Methods | > 3.2 Searching with Character Strings |
It is possible to search for documents that meet conditions by comparing the size between a character string in any element node of an XML document or the attribute nodes of that element node and any keyword. The size relationship between character strings refers to the size relationship between the character code values of those strings. This type of search is known as a size comparison search. The size comparison search is specified by connecting the path expression, text expression or attribute expression and the search keyword with the relational operator. The relational operators can be used:'<', <'=', '>' and '>='.
Refer to B.2.1 Path Expressions for more information on path expressions.
Refer to B.2.2 Text Expressions for more information on text expressions.
Refer to B.2.3 Attribute Expressions for more information on attribute expressions.
Refer to Character String in B.3.2 Keywords for more information on size comparisons and relational operators.
Example
The following example shows how to search for documents in which the trip date (date) is later than 2006/02/01:
/doc/basic/@date > '2006/02/01'Result: Document C is returned.
To perform a size comparison between character codes, the character strings need to be in the same format. For example, if the date is specified as '2006/2/1', the intended documents will not be found.
Contents
Index
![]() ![]() |