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 with an element node or the attribute nodes of that element node which contain a character string that exactly matches a given keyword.
This type of search is known as a complete match search.
The complete match 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 complete matches and relational operators.
Example 1
The following example shows how to search for documents in which the trip destination (destination) is specified as 'Head Office':
/doc/detail/destination == 'Head Office'Result: Document C is returned.
Example 2
The following example shows how to search for documents in which the classification code (code) is specified as '0001'.
/doc/basic/classification/@code == '0001'Result: Document A is returned.
Contents
Index
![]() ![]() |