Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Appendix B Format of Search, Return and Sort Expressions | > B.3 Search Expressions |
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.
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.
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.
Entity references |
Symbol represented |
---|---|
< |
< |
> |
> |
& |
& |
' |
' |
" |
" |
Various search conditions can be specified by combining keywords and relational operators. The following table shows the meaning of each combination.
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. |
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. |
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
![]() ![]() |