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 |
A search expression is used to retrieve XML documents that satisfy specified conditions from the XML documents stored in Shunsaku.
Refer to B.3 Search Expressions for more information on search expressions.
It is possible to search for XML documents by specifying conditions that apply to character strings contained in any given element node of an XML document or character strings contained in the attribute nodes of that element node. The following three methods can be used to specify the conditions that apply to the character string:
The following examples assume that Documents A, B, and C below, exist.
In this section, it is assumed that the parameter for distinguishing between upper and lower case for alphanumeric characters in the strings that will be searched (ANKmix) is set to 1 (Do not match case sensitivity for alphanumeric characters).
Document A
<doc> : <basic date="2006/01/30" > <classification code="0001">Area-A</classification> : </basic> <detail> <destination area="Richmond, Melbourne" >Melbourne Office</destination> <purpose>Interstage Shunsaku Sales Promotion Meeting attendance</purpose> <train>$20.00</train> <taxi></taxi> <hotel>$85.00</hotel> <comment>Hotel charges were incurred due to attendance at an informal meeting</comment> </detail> <report>At the meeting, the Systems Manager of the IT Department of Company A requested that a search response of 10 seconds or less be attained.</report> </doc> |
Document B
<doc> : <basic date="2006/01/31"> <classification code="0003">Area-C</classification> : </basic> <detail> <destination area="Balmain, Darlinghurst, Bronte, Sydney">Sydney branch</destination> <purpose>V7.0L10 installation report</purpose> <train>$140.00</train> <taxi>$180.30</taxi> <hotel></hotel> <comment>Plan to return home directly</comment> </detail> <report>Because of the rapid installation, the client doubted that we could achieve their requested search response of 18 seconds. However, we were in fact able to achieve a search response of just 14 seconds.</report> </doc> |
Document C
<doc> : <basic date="2006/03/02"> <classification code="0002">Area-B</classification> : </basic> <detail> <destination area="Clearview, Belair, Adelaide">Head office</destination> <purpose>Interstage regular meeting</purpose> <train>$24.00</train> <taxi>$21.00</taxi> <hotel></hotel> <comment>Sales meeting materials were verified in advance.</comment> </detail> <report>They were requested to get advance approval from the Sales Coordination Department to verify the materials.</report> </doc> |
Contents
Index
![]() ![]() |